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

File_Browser:

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 get

    obj.filter = str filter set
    ( fl_filename_match )

  • obj.iconsize ==> int pixels get

    obj.iconsize = int pixels set
    ( default 20 )

  • obj.textsize ==> int pixels get

    obj.textsize = int pixels set

  • obj.filetype ==> str mode get

    obj.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! )

Clone this wiki locally