This control allows the user to select a directory. The generic implementation is a button which brings up a wxDirDialog when clicked. Native implementation may differ but this is usually a (small) widget which give access to the dir-chooser dialog. It is only available if wxUSE_DIRPICKERCTRL is set to 1 (the default).
This class supports the following styles:
wxWidgets docs: wxDirPickerCtrl
Event types emitted from this class: command_dirpicker_changed
new() -> wxDirPickerCtrl()
new(Parent, Id) -> wxDirPickerCtrl()
new(Parent, Id, Options :: [Option]) -> wxDirPickerCtrl()
Initializes the object and calls create/4 with all the parameters.
create(This, Parent, Id) -> boolean()
create(This, Parent, Id, Options :: [Option]) -> boolean()
Creates the widgets with the given parameters.
Return: true if the control was successfully created or false if creation failed.
getPath(This) -> unicode:charlist()
Returns the absolute path of the currently selected directory.
setPath(This, Dirname) -> ok
Sets the absolute path of the currently selected directory.
If the control uses wxDIRP_DIR_MUST_EXIST and does not use wxDIRP_USE_TEXTCTRL style, the dirname must be a name of an existing directory and will be simply ignored by the native wxGTK implementation if this is not the case.
destroy(This :: wxDirPickerCtrl()) -> ok
Destroys the object.