Checkbox.bac
Page last edited 3,279 days ago
From bigbass code
Jump to navigation
Jump to search
'Include the files for making a GUI. INCLUDE "hug.bac" INIT
' we want to "echo out" which checkbox was pressed ' this could launch another app
'--------------------' SUB checkbox_demo() '--------------------' PRINT "check_boxdemo" END SUB
' 1.) Create your main working window, 250 pixels wide x 100 pixels high Mainwin = WINDOW( "BaCon checkbox", 250, 100)
My_checkbox = CHECK("checkbox here", 120, 25) ATTACH( Mainwin, My_checkbox, 10, 10 ) CALLBACK(My_checkbox, checkbox_demo)
DISPLAY