Skip to content
doyousketch2 edited this page Sep 6, 2019 · 11 revisions

Check_Browser:

Corresponds to: Fl_Check_Browser

Inherits from: Browser_, Widget

  • fl.Check_Browser( int X, int Y, int W, int H, *str label ) ==> userdata Widget
  • fl.Check_Browser{ table } ==> userdata Widget (table constructor syntax)

  • obj:add( *str text, bool check ) (Add newline to end of browser w/ optional check)
  • obj:check_all()
  • obj:check_none()
  • obj:checked( int line# ) ==> bool get
  • obj:checked( int line#, bool ) set
  • obj:clear()
  • obj:remove( int line# ) ==> int #lines left
  • obj:set_checked( int line# ) ( same as obj:checked( line#, 1 ) )
  • obj:text( int line# ) ==> *str line text
  • methods defined for the Browser_ userdata type
  • methods defined for the Widget userdata type
  • obj.value ==> int current line#
  • obj.nitems ==> int #lines
  • obj.nchecked ==> #lines checked
  • properties defined for the Browser_ userdata type
  • properties defined for the Widget userdata type

(note: Check_Browser does not inherit the methods and properties of Group, although Fl_Check_Browser is implemented as a sub-class of Fl_Group!)

Clone this wiki locally