Skip to content
doyousketch2 edited this page Sep 13, 2019 · 14 revisions

Button:

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 get

    obj.value = int status set
    ( > 0 on, 0 off )

  • obj.down_box ==> str Fl_Boxtype get Fl_Boxtype

    obj.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_Color

    obj.down_color = int|userdata set Fl_Color

  • obj.type ==> str mode get

    obj.type = str mode set
    select mode:

    • "FL_NORMAL_BUTTON" ( default )
    • "FL_TOGGLE_BUTTON"
    • "FL_RADIO_BUTTON"
Clone this wiki locally