Microsoft KB Archive/102784

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 10:16, 20 July 2020 by X010 (talk | contribs) (Text replacement - "<" to "<")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Using Enabled/Disabled/Selected Bitmaps for Picture Button

ID: Q102784

2.50 WINDOWS kbprg

The information in this article applies to:

  • Microsoft FoxPro for Windows, version 2.5

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 KBCategory: kbprg KBSubcategory: FxtoolSbuilder

Keywords          : FxtoolSbuilder 
Version           : 2.50
Platform          : WINDOWS

Last Reviewed: April 30, 1996
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.