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....



FrameStyle


Unit: SDL_onoffbut
Class: TOnOffBut
Declaration: property FrameStyle: TFrameStyle;

The property FrameStyle defines the style of the box enclosing the button component area. The following styles are available:

fsNone no box at all
fsSimple a single line box around the component
fsLowered a box which appears to be lowered
fsRaised a box which seem to be raised against its background
fsEngraved an engraved line is drawn around the component
fsEmbossed the box is formed by an embossed line around the component

Hint: Please note that the frame forms the boundary of the component area (as defined by the properties Left, Top, Width and Height) and not that of the button glyph. If you want to draw a frame around the button image, you have to draw it within the button image, either by editing the resource file or by loading a user-defined glyph.

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): onoffbut



Last Update: 2012-Oct-20