 |
DrawStaticButton |
Function (ROM Call 0x35) |
Draws a button in a window.
DrawStaticButton draws a button at the bottom of the window pointed to by w,
where x is distance (in pixels) from the left edge of the window to the left
edge of the button. Parameter ButtonType determines the type of the button.
The set of possible types is very limited, and they are defined in enum
Buttons (any other values will cause a crash). The meanings
of these constants are:
BT_OK | Button "Enter=OK" |
BT_SAVE | Button "Enter=SAVE" |
BT_YES | Button "Enter=YES" |
BT_CANCEL | Button "Esc=CANCEL" |
BT_NO | Button "ESC=NO" |
BT_GOTO | Button "Enter=GOTO" |
Note: The current font (set using WinFont) must be F_4x6
for this function to work correctly.
Uses: MakeWinRect, WinRect, WinStrXY, ROM Call 0x4D5
Used by: assert, cmd_showstat, ERD_dialog, EV_defaultHandler, EV_quit