-
Notifications
You must be signed in to change notification settings - Fork 5
File_Browser
doyousketch2 edited this page Sep 13, 2019
·
7 revisions
Corresponds to:
Fl_File_Browser
Inherits from:
Browser
,
Browser_
,
Widget
Constructors
fl.File_Browser( int X, int Y, int W, int H, *str label ) ==> userdata Widget
-
fl.File_Browser{ table entries } ==> userdata Widget
( table constructor syntax )
Functions
- methods defined for
Browser
userdata type - methods defined for
Browser_
userdata type - methods defined for
Widget
userdata type -
obj:load( str dir, str sort_function ) ==> bool / *int|*str
select sort_function:"fl_alphasort"
"fl_casealphasort"
"fl_casenumericsort"
-
"fl_numericsort"
( default )
Properties
- properties defined for
Browser
userdata type - properties defined for
Browser_
userdata type - properties defined for
Widget
userdata type -
obj.filter ==> str filter
getobj.filter = str filter
set
( fl_filename_match ) -
obj.iconsize ==> int pixels
getobj.iconsize = int pixels
set
( default 20 ) -
obj.textsize ==> int pixels
getobj.textsize = int pixels
set -
obj.filetype ==> str mode
getobj.filetype = str mode
set
select mode:-
"FILES"
both files and directories are shown -
"DIRECTORIES"
only directories are shown
-
( note: File_Browser
does not inherit methods and properties ofGroup
,
although Fl_File_Browser
is implemented as a sub-class of Fl_Group
! )