X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/58772e4992e1a0601bddbf76fddbf4bb916cf85e..a236aa2058ccf3d36e9cafc20fa7375080c4be50:/docs/latex/wx/dirpicker.tex diff --git a/docs/latex/wx/dirpicker.tex b/docs/latex/wx/dirpicker.tex index 89364c49f2..2eb69132ea 100644 --- a/docs/latex/wx/dirpicker.tex +++ b/docs/latex/wx/dirpicker.tex @@ -46,6 +46,9 @@ The text control is automatically synchronized with button's value. Use function \wxheading{Event handling} +To process a directory picker event, use these event handler macros to direct input to member +functions that take a \helpref{wxFileDirPickerEvent}{wxfiledirpickerevent} argument. + \twocolwidtha{7cm}% \begin{twocollist}\itemsep=0pt \twocolitem{{\bf EVT\_DIRPICKER\_CHANGED(id, func)}}{The user changed the @@ -114,19 +117,36 @@ all the parameters. \true if the control was successfully created or \false if creation failed. + +\membersection{wxFilePickerCtrl::GetDirName}\label{wxfilepickerctrlgetdirname} + +\constfunc{wxFileName}{GetDirName}{\void} + +Returns the absolute path of the currently selected directory as a \helpref{wxFileName}{wxfilename} object. +This function is equivalent to \helpref{GetPath}{wxdirpickerctrlgetpath} + \membersection{wxDirPickerCtrl::GetPath}\label{wxdirpickerctrlgetpath} \constfunc{wxString}{GetPath}{\void} -Returns the currently selected directory. +Returns the absolute path of the currently selected directory. + + +\membersection{wxFilePickerCtrl::SetDirName}\label{wxfilepickerctrlsetdirname} + +\func{void}{SetDirName}{\param{const wxFileName \&}{dirname}} + +Just like \helpref{SetPath}{wxdirpickerctrlsetpath} but this function takes a +\helpref{wxFileName}{wxfilename} object. \membersection{wxDirPickerCtrl::SetPath}\label{wxdirpickerctrlsetpath} \func{void}{SetPath}{\param{const wxString \&}{dirname}} -Sets the currently selected directory. his must be a valid directory if +Sets the absolute path of (the default converter uses current locale's +charset)the currently selected directory. This must be a valid directory if {\tt wxDIRP\_DIR\_MUST\_EXIST} style was given.