wxDirPickerCtrl(3erl)
π NAME π
wxDirPickerCtrl β Functions for the wxDirPickerCtrl class. This is the Erlang module definition page, bestie, aka wxDirPickerCtrl(3erl) vibes. π
β¨ DESCRIPTION β¨
This control lets the user select a directory. The generic implementation is a button that brings up a wxDirDialog when clicked. Native implementation may differ, but this is usually a (small) widget that gives access to the dir-chooser dialog. It is only available if wxUSE_DIRPICKERCTRL is set to 1 (the default). π
π¨ Styles π¨
This class supports the following styles:
(that's literally the whole style list on this page β no extras invented, periodt π)
π See also: wxDirDialog, wxFileDirPickerEvent.
This class is derived (and can use functions) from: wxPickerBase, wxControl, wxWindow, wxEvtHandler. π
wxWidgets docs: wxDirPickerCtrl.
π£ EVENTS π£
Event types emitted from this class: command_dirpicker_changed.
𧬠DATA TYPES π§¬
wxDirPickerCtrl() = wx:wx_object()
π EXPORTS π
new() -> wxDirPickerCtrl()
new(Parent, Id) -> wxDirPickerCtrl()
Types:
Parent = wxWindow:wxWindow()
Id = integer()
new(Parent, Id, Options :: [Option]) -> wxDirPickerCtrl()
Types:
Parent = wxWindow:wxWindow()
Id = integer()
Option =
{path, unicode:chardata()} |
{message, unicode:chardata()} |
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()} |
{validator, wx:wx_object()}
Initializes the object and calls create/4 with all the parameters. β¨
create(This, Parent, Id) -> boolean()
Types:
This = wxDirPickerCtrl()
Parent = wxWindow:wxWindow()
Id = integer()
create(This, Parent, Id, Options :: [Option]) -> boolean()
Types:
This = wxDirPickerCtrl()
Parent = wxWindow:wxWindow()
Id = integer()
Option =
{path, unicode:chardata()} |
{message, unicode:chardata()} |
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()} |
{validator, wx:wx_object()}
Creates the widgets with the given parameters. π οΈ
Returns true if the control was successfully created or false if creation failed.
getPath(This) -> unicode:charlist()
Types:
This = wxDirPickerCtrl()
Returns the absolute path of the currently selected directory. π
setPath(This, Dirname) -> ok
Types:
This = wxDirPickerCtrl()
Dirname = unicode:chardata()
Sets the absolute path of the currently selected directory. π
π¨ caveat, bestie: If the control useswxDIRP_DIR_MUST_EXISTand does not usewxDIRP_USE_TEXTCTRLstyle, thedirnamemust be a name of an existing directory and will be simply ignored by the nativewxGTKimplementation if this is not the case. No cap, that's the rule.
destroy(This :: wxDirPickerCtrl()) -> ok
Destroys the object. π
mwah π β brought to you by the wxWidgets team, version wx 2.2.2.1, in the wxDirPickerCtrl(3erl) footer source/version/date era. Slay. π«Ά
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms