These parameters are specific to changing how the DIALOG YES and NO buttons are displayed.
Parameter |
Value |
Description |
BUTTON_YES_BACK_COLOR |
value |
Specifies the background color for the Yes button |
BUTTON_YES_CAPTION |
value |
Specifies the text for the Yes button. |
BUTTON_YES_FONT_SIZE |
value |
Specifies the font size for Yes button. |
BUTTON_YES_FONT_BOLD |
ON OFF |
Specifies if the Yes button font is bold type. |
BUTTON_YES_FONT_ITALIC |
ON OFF |
Specifies if the Yes button font is italic type. |
BUTTON_YES_FONT_NAME |
value |
Specifies the font name for Yes button. |
BUTTON_YES_FONT_STRIKEOUT |
ON OFF |
Specifies if the Yes button font is strike out type. |
BUTTON_YES_FONT_UNDERLINE |
ON OFF |
Specifies if the Yes button font is underline type. |
BUTTON_YES_WIDTH |
value |
Specifies the Yes button width in pixels. |
BUTTON_YES_FONT_COLOR |
value |
Specifies the font color for Yes button. |
BUTTON_YES_COLOR |
value |
Specifies the color for Yes button. |
BUTTON_NO_CAPTION |
value |
Specifies the text for the No button. |
BUTTON_NO_FONT_SIZE |
value |
Specifies the font size for No button. |
BUTTON_NO_FONT_BOLD |
ON OFF |
Specifies if the No button font is bold type. |
BUTTON_NO_FONT_ITALIC |
ON OFF |
Specifies if the No button font is italic type. |
BUTTON_NO_FONT_NAME |
value |
Specifies the font name for No button. |
BUTTON_NO_FONT_STRIKEOUT |
ON OFF |
Specifies if the No button font is strike out type. |
BUTTON_NO_FONT_UNDERLINE |
ON OFF |
Specifies if the No button font is underline type. |
BUTTON_NO_WIDTH |
value |
Specifies the No button width in pixels. |
BUTTON_NO_FONT_COLOR |
value |
Specifies the font color for No button. |
BUTTON_NO_COLOR |
value |
Specifies the color for No button. |
BUTTON_NO_BACK_COLOR |
value |
Specifies the background color for NO button. |
BUTTON_HEIGHT |
value |
Specifies the height of the buttons in pixels. |
-- Example (DIALOG with Custom Buttons)
SET VAR vCaption TEXT = 'Run Monthly Routines'
SET VAR vYesNo TEXT = NULL
SET VAR vEndKey TEXT = NULL
CLS
DIALOG 'You have selected to run monthly routines' vYesNo vEndKey No +
CAPTION .vCaption +
ICON QUESTION +
OPTION WINDOW_BACK_COLOR WHITE +
|MESSAGE_BACK_COLOR WHITE +
|MESSAGE_FONT_NAME Tahoma +
|MESSAGE_FONT_COLOR RED +
|MESSAGE_FONT_SIZE 12 +
|BUTTON_YES_CAPTION &Yes +
|BUTTON_YES_COLOR WHITE +
|BUTTON_YES_FONT_COLOR GREEN +
|BUTTON_YES_FONT_NAME Tahoma +
|BUTTON_YES_FONT_SIZE 11 +
|BUTTON_YES_FONT_BOLD ON +
|BUTTON_YES_WIDTH 85 +
|BUTTON_NO_CAPTION &No +
|BUTTON_NO_COLOR WHITE +
|BUTTON_NO_FONT_COLOR RED +
|BUTTON_NO_FONT_NAME Tahoma +
|BUTTON_NO_FONT_SIZE 11 +
|BUTTON_NO_FONT_BOLD ON +
|BUTTON_NO_WIDTH 85
IF vYesNo = 'No' OR vEndKey = '[Esc]' THEN
GOTO Done
ENDIF
-- Do what you have to do here ...
LABEL Done
CLS
CLEAR VARIABLES vCaption,vYesNo,vEndKey
RETURN