-
Notifications
You must be signed in to change notification settings - Fork 5
Button
doyousketch2 edited this page Sep 13, 2019
·
14 revisions
Corresponds to:
Fl_Button
Inherits from:
Widget
Constructors
fl.Button( int X, int Y, int W, int H, *str label ) ==> userdata Widget
-
fl.Button{ table entries } ==> userdata Widget
( table constructor syntax )
Functions
- methods defined for
Widget
userdata type -
obj:clear()
( same as obj.value = 0 )
-
obj:set()
( same as obj.value = 1 )
-
obj:setonly()
( button on + others in group off )
Properties
- properties defined for
Widget
userdata type -
obj.value ==> bool status
getobj.value = int status
set
( > 0 on, 0 off ) -
obj.down_box ==> str Fl_Boxtype
get Fl_Boxtypeobj.down_box = str Fl_Boxtype
set Fl_Boxtype -
obj.shortcut ==> userdata
(shortcut key)obj.shortcut = int|str|userdata
(shortcut key) -
obj.down_color ==> userdata
get Fl_Colorobj.down_color = int|userdata
set Fl_Color -
obj.type ==> str mode
getobj.type = str mode
set
select mode:-
"FL_NORMAL_BUTTON"
( default ) "FL_TOGGLE_BUTTON"
"FL_RADIO_BUTTON"
-