DISABLED_ITEM_FORECOLOR Constants Example
◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
' This example illustrates the effect of changing the value of the
' DISABLED_ITEM_FORECOLOR constant.
' To try this example:
' 1. Choose New Project from the File menu
' 2. Choose New Form from the File menu to create a form with two command
' buttons
' 3. Set the Caption property of the first command button to "&DoIt"
' 4. Set the Enabled property of the second command button to False (0)
' 5. Press Alt+F4 to return to the programming environment
' 6. Copy the code example below to the form module
' 7. Press F5 to run the example
' $INCLUDE: 'CONSTANT.BI' ' Include ControlPanel definitions
SUB Command1_Click ()
SCREEN.ControlPanel(DISABLED_ITEM_FORECOLOR) = 11
END SUB