Radiobox.bac
Page last edited 3,279 days ago
From bigbass code
Jump to navigation
Jump to search
' radiobox.bac
' Include the files for making a GUI. INCLUDE "hug.bac" INIT
' we want to "echo out" which radiobox was pressed ' this could launch another app
'--------------------- SUB radiobox_demo() '---------------------
PRINT "radiobox_demo"
END SUB
' 1.) Create your main working window, 250 pixels wide x 100 pixels high Mainwin = WINDOW( "BaCon radiobox", 250, 100 )
' remember create, ATTACH ,CALLBACK ,SUB ' remember radiobox has an extra field at the end than the checkbox
My_radiobox = RADIO("This is a radiobox", 150, 25,0) ATTACH( Mainwin, My_radiobox, 5, 0 ) CALLBACK(My_radiobox, radiobox_demo)
DISPLAY