-
Notifications
You must be signed in to change notification settings - Fork 5
Button
doyousketch2 edited this page Sep 6, 2019
·
14 revisions
Corresponds to:
Fl_Button
Inherits from:
Widget
fl.Button( int X, int Y, int W, int H, *str label ) ==> userdata Widget-
fl.Button{ table entries } ==> userdata Widget(table constructor syntax)
- methods defined for the
Widgetuserdata type - properties defined for the
Widgetuserdata type -
obj:clear() ==> bool(same as obj.value = 0) -
obj:set() ==> bool(same as obj.value = 1) -
obj:setonly()(button on + others in group off) -
obj.value ==> bool statusget (1 on, 0 off) -
obj.value = bool statusset (1 on, 0 off) -
obj.down_box ==> str Fl_Boxtypeget Fl_Boxtype -
obj.down_box = str Fl_Boxtypeset Fl_Boxtype -
obj.shortcut ==> userdata(shortcut key) -
obj.shortcut = int|str|userdata(shortcut key) -
obj.down_color ==> userdataget Fl_Color -
obj.down_color = int|userdataset Fl_Color -
obj.type ==> str modeget (see below) -
obj.type = str modeset (see below)
Different behavior for the button can be selected by setting its
type property / mode to one of:
-
"FL_NORMAL_BUTTON"(the default) "FL_TOGGLE_BUTTON""FL_RADIO_BUTTON"