Using Enabled/Disabled/Selected Bitmaps for Picture Button

Last reviewed: April 29, 1996
Article ID: Q102784
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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.