wxDirDialog(3erl)

wxDirDialog3erl

Functions for wxdirdialog class

Overview

This class represents the directory chooser dialog.

Styles

This class supports the following styles:

Note: This flag cannot be used with the wxDD_MULTIPLE style.

Remark: MacOS 10.11+ does not display a title bar on the dialog. Use setMessage/2 to change the string displayed to the user at the top of the dialog after creation. The wxTopLevelWindow:setTitle/2 method is provided for compatibility with pre-10.11 MacOS versions that do still support displaying the title bar.

See: Overview cmndlg, wxFileDialog

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

wxWidgets docs: wxDirDialog

Data types

wxDirDialog() = wx:wx_object()

Exports

new(Parent) -> wxDirDialog()

Types:

Parent = wxWindow:wxWindow()

new(Parent, Options :: [Option]) -> wxDirDialog()

Types:

Parent = wxWindow:wxWindow()
Option =

{title, unicode:chardata()} |

{defaultPath, unicode:chardata()} |

{style, integer()} |

{pos, {X :: integer(), Y :: integer()}} |

{sz, {W :: integer(), H :: integer()}}

Constructor.

Use wxDialog:showModal/1 to show the dialog.

destroy(This :: wxDirDialog()) -> ok

Destructor.

getPath(This) -> unicode:charlist()

Types:

This = wxDirDialog()

Returns the default or user-selected path.

Note: This function can't be used with dialogs which have the wxDD_MULTIPLE style, use GetPaths() (not implemented in wx) instead.

getMessage(This) -> unicode:charlist()

Types:

This = wxDirDialog()

Returns the message that will be displayed on the dialog.

setMessage(This, Message) -> ok

Types:

This = wxDirDialog()
Message = unicode:chardata()

Sets the message that will be displayed on the dialog.

setPath(This, Path) -> ok

Types:

This = wxDirDialog()
Path = unicode:chardata()

Sets the default path.

Releases

7 releases since Debian 6.0 (Squeeze); the text changed 6 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12

From erlang-manpages 1:25.2.3+dfsg-1+deb12u4 in Debian 12 (Bookworm). Parsed by carta from the page's man source.