X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34c07b8b63651e46aabb7809c25d95dd40736687..fc715b5088d317ad09cad84f0d9d375bfac055fd:/docs/latex/wx/filepicker.tex diff --git a/docs/latex/wx/filepicker.tex b/docs/latex/wx/filepicker.tex index ffa3e99652..93293aac5e 100644 --- a/docs/latex/wx/filepicker.tex +++ b/docs/latex/wx/filepicker.tex @@ -51,6 +51,9 @@ NB: the wxFD\_MULTIPLE style of wxFileDialog is not supported! \wxheading{Event handling} +To process a file 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\_FILEPICKER\_CHANGED(id, func)}}{The user changed the file @@ -125,6 +128,14 @@ all the parameters. \true if the control was successfully created or \false if creation failed. +\membersection{wxFilePickerCtrl::GetFileName}\label{wxfilepickerctrlgetfilename} + +\constfunc{wxFileName}{GetFileName}{\void} + +Similar to \helpref{GetPath}{wxfilepickerctrlgetpath} but returns the path of +the currently selected file as a \helpref{wxFileName}{wxfilename} object. + + \membersection{wxFilePickerCtrl::GetPath}\label{wxfilepickerctrlgetpath} \constfunc{wxString}{GetPath}{\void} @@ -132,6 +143,14 @@ all the parameters. Returns the absolute path of the currently selected file. +\membersection{wxFilePickerCtrl::SetFileName}\label{wxfilepickerctrlsetfilename} + +\func{void}{SetFileName}{\param{const wxFileName \&}{filename}} + +This method does the same thing as \helpref{SetPath}{wxfilepickerctrlsetpath} but +takes a \helpref{wxFileName}{wxfilename} object instead of a string. + + \membersection{wxFilePickerCtrl::SetPath}\label{wxfilepickerctrlsetpath} \func{void}{SetPath}{\param{const wxString \&}{filename}} @@ -195,3 +214,4 @@ Retrieve the absolute path of the file/directory the user has just selected. \func{void}{SetPath}{\param{const wxString \&}{path}} Set the absolute path of the file/directory associated with the event. +