-
Notifications
You must be signed in to change notification settings - Fork 5
Scroll
doyousketch2 edited this page Sep 13, 2019
·
6 revisions
Corresponds to:
Fl_Scroll
Inherits from:
Group
,
Widget
Constructors
fl.Scroll( int X, int Y, int W, int H, *str label ) ==> userdata Widget
-
fl.Scroll{ table entries } ==> userdata Widget
(table constructor syntax)
Functions
- methods defined for
Group
userdata type - methods defined for
Widget
userdata type -
obj:clear()
( Clear all but scrollbars ) obj:scroll_to( int X, int Y )
Properties
- properties defined for
Group
userdata type - properties defined for
Widget
userdata type -
obj.xposition ==> int X
get -
obj.yposition ==> int Y
get -
obj.scrollbar ==> userdata
get ( Fl_Scrollbar ) -
obj.hscrollbar ==> userdata
get ( Fl_Scrollbar ) -
obj.scrollbar_size ==> int size
get ( in pixels ) -
obj.scrollbar_size = int size
set ( in pixels ) -
obj.type ==> str mode
get ( see below ) -
obj.type = str mode
set ( see below )
The type
property / mode of scroll widgets can be set to one of the
following values to select which scrollbar(s) are shown:
"NO_SCROLLBARS"
"HORIZONTAL"
"VERTICAL"
"BOTH"
"HORIZONTAL_ALWAYS"
"VERTICAL_ALWAYS"
"BOTH_ALWAYS"