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


Unit: SDL_onoffbut
Class: TOnOffBut
Declaration: procedure LoadUserGlyph (FName: string);

The method LoadUserGlyph loads the user-defined button image from a BMP file into memory. The parameter FName contains the filename of the bitmap file which has to conform to the button image format.

Hint: The ButtonStyle property has to be set to oobsUser in order to show the user-defined glyph.

Example: This method is used in the following example program (see for downloading the code): onoffbut

Last Update: 2012-Okt-20