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

Browser_ (abstract):

Corresponds to: Fl_Browser_

  • obj:deselect( *int docallbacks=0 ) ==> bool (1 if state changed, else 0)
  • obj:scrollbar_left() (moves vert scrollbar left of list)
  • obj:scrollbar_right() (moves vert scrollbar right of list)
  • obj:sort( *str flag ) ( 'FL_SORT_ASCENDING' or 'FL_SORT_DESCENDING' )
  • obj.textfont ==> str textfont get
  • obj.textfont = int|str textfont set
  • obj.textsize ==> int textsize get
  • obj.textsize = int textsize set
  • obj.textcolor ==> userdata color get Fl_Color
  • obj.textcolor = int|userdata color set Fl_Color
  • obj.hposition ==> int pos get
  • obj.hposition = int pos set
  • obj.vposition ==> int pos get
  • obj.vposition = pos set (corresponds to Fl_Browser_::position())
  • obj.scrollbar_size ==> int pixels get
  • obj.scrollbar_size = int pixels set
  • obj.scrollbar_width ==> int pixels get (deprecated, use obj.scrollbar_size instead)
  • obj.scrollbar_width = int pixels set (deprecated, use obj.scrollbar_size = instead)
  • obj.has_scrollbar ==> str mode (see below)
  • obj.has_scrollbar = str mode (see below)

The has_scrollbar property of browser widgets can be set to one of the following modes to select which scrollbars are shown:

  • "HORIZONTAL"
  • "VERTICAL"
  • "BOTH" (the default)
  • "HORIZONTAL_ALWAYS"
  • "VERTICAL_ALWAYS"
  • "BOTH_ALWAYS"

Clone this wiki locally