Microsoft KB Archive/102784
Using Enabled/Disabled/Selected Bitmaps for Picture Button
2.50 WINDOWS kbprg
The information in this article applies to:
To specify different selected, enabled, and disabled bitmaps for picture buttons in the Screen Builder, you must use a SHOW GET command in the READ WHEN clause.
FoxPro for Windows automatically takes care of changing the appearance of picture buttons when they are selected, enabled, or disabled. You can override this default behavior by specifying different selected, enabled, and disabled bitmaps. The SHOW GET command has been enhanced to provide this additional functionality. In the READ WHEN clause, issue the following command
SHOW GET <varname>,<btn#> PROMPT "<enabled.bmp>,<selected.bmp>,<disabled.bmp>"
varname = The variable/field of the button to change. btn# = The number of the button within the button set to change. This is a mandatory parameter even if there is only one button in the set. .bmps = The name of the bitmap, optionally including a path. It is not necessary to specify all three bitmaps.
This technique redefines the buttons before they are displayed. Additional reference words: FoxWin 2.50 KBCategory: kbprg KBSubcategory: FxtoolSbuilder
Keywords : FxtoolSbuilder Version : 2.50 Platform : WINDOWS
Last Reviewed: April 30, 1996