wxGenericDirCtrl

wxGenericDirCtrl

wxGenericDirCtrl
Functions for wxGenericDirCtrl class

This control can be used to place a directory listing (with optional files) on an arbitrary window.

The control contains a wxTreeCtrl window representing the directory hierarchy, and optionally, a wxChoice window containing a list of filters.

Styles

This class supports the following styles:

This class is derived (and can use functions) from: wxControl wxWindow wxEvtHandler

wxWidgets docs: wxGenericDirCtrl

Event types emitted from this class: dirctrl_selectionchanged, dirctrl_fileactivated

Types

Option =
    {id, integer()} |
    {dir, unicode:chardata()} |
    {pos, {X :: integer(), Y :: integer()}} |
    {size, {W :: integer(), H :: integer()}} |
    {style, integer()} |
    {filter, unicode:chardata()} |
    {defaultFilter, integer()}

Main constructor.

Types

Option =
    {id, integer()} |
    {dir, unicode:chardata()} |
    {pos, {X :: integer(), Y :: integer()}} |
    {size, {W :: integer(), H :: integer()}} |
    {style, integer()} |
    {filter, unicode:chardata()} |
    {defaultFilter, integer()}

Create function for two-step construction.

See new/2 for details.

Tries to expand as much of the given path as possible, so that the filename or directory is visible in the tree control.

Types

Gets selected filename path only (else empty string).

This function doesn't count a directory as a selection.

Types

Returns the current filter index (zero-based).

Types

Returns the root id for the tree control.

Types

Collapse and expand the tree, thus re-creating it from scratch.

May be used to update the displayed directory content.

Types

N = integer()

Sets the current filter index (zero-based).