! BTNMATRIX.DEF [102] - symbols for BTNMATRIX.SBX !------------------------------------------------------------------------ !EDIT HISTORY !Version 1.0:- ! [102] 22-Sep-18 / jdm / add font attributes, fgc ST_MATRIX_BTN ! [101] 13-Aug-18 / jdm / add opcode defs, dlg flags, and exitcode symbols ! [100] 09-Aug-18 / jdm / created !------------------------------------------------------------------------ !REQUIREMENTS ! !NOTES !------------------------------------------------------------------------ ! flags definitions define BMXF_PIXCOORDS = &h00000001 ! set MBF2_PIXCOORDS (dlg coords are in pixels) define BMXF_BUTTON = &h00000002 ! use button control (else use static) define BMXF_IMG_TXT = &h00000004 ! combine images with text (for buttons) define BMXF_NAV_BTNS = &h00000008 ! display up/down nav buttons within matrix ! these relate to the dialog (Fn'Button'Matrix'Dialog()) define BMXF_MAXIMIZE = &h00000010 ! maximize the dialog define BMXF_MAXBTN = &h00000020 ! add max button to dialog define BMXF_MODELESS = &h00000040 ! leave dialog on screen after exit define BMXF_EDIT = &h00000080 ! add an edit box to the dialog define BMXF_TEXTONLY = &h00000100 ! [102] (for static, text only - no images) ! opcode definitions [101] define BMXOP_DISPONLY = 0 ! [101] create (display) and exit define BMXOP_DISPWAIT = 1 ! [101] same as 0 but wait on events define BMXOP_WAITONLY = 2 ! [102] same as 1 but reuse existing controls (re-entry) define BMXOP_DELETE = 3 ! [103] delete defstruct ST_MATRIX_BTN map2 text$,s,260 ! text, image spec (or both) map2 tip$,s,150 ! tool tip map2 cmd$,s,20 ! cmd string (e.g. VK_xF123) map2 fgc,i,4 ! [102] fg color map2 bgc,i,4 ! bg color (only for static) map2 fontattr,b,4 ! [102] font attributes endstruct ! dialog edit control attributes define BMXEDIT_CLICKCODE = 50900 ! clickcode define BMXEDIT_TYPE$ = "A]|K " ! type codes define BMXEDIT_XMAX = 50 ! xmax