DrawStaticButton Function (ROM Call 0x35)

wingraph.h

void DrawStaticButton (WINDOW *w, short ButtonType, short x);

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_OKButton "Enter=OK"
BT_SAVEButton "Enter=SAVE"
BT_YESButton "Enter=YES"
BT_CANCELButton "Esc=CANCEL"
BT_NOButton "ESC=NO"
BT_GOTOButton "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