The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



Editing the button resources


The TOnOffButton component retrieves the required button image (depending on the property ButtonStyle) from the resource file SDL_onoffbut.res. If you want to adapt the buttons you can easily edit this resource file by an external resource file editor (see Hint below).

The resource file currently contains the following bitmaps:


ARROWLR

ARROWTR

ARROWUD

BEVELEDLED

BULB

BUTLAMP

CHECKBOX

COLSLIDELR

COLSLIDETB

HDLEFT

HDRIGHT

LEDREDGREEN

RADIOBUT

SLIDELFTRGT

SLIDETOPBOT

SMILEYRG

SMILEYS

TRAFFICLGT

USER1

USER2

USER3

USER4

USER5
 

Five of the images in the resource file (USER1..USER5) are reserved for user-specific buttons. You have to edit the resource file to override the default glyphs.

Hint 1: Do not use the Delphi image editor for editing the resource file since this editor does not support 24-bit colors. Instead of the image editor, you may use, for example, the program Resource Hacker of Angus Johnson, or the program XN Resource Editor of Colin Wilson.



Last Update: 2023-Feb-06