Using Enabled/Disabled/Selected Bitmaps for Picture ButtonLast reviewed: April 29, 1996Article ID: Q102784 |
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>"where:
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
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |