X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34c07b8b63651e46aabb7809c25d95dd40736687..3cc305b2b4a0674c56c84d7088cfd70676b850f0:/docs/latex/wx/filepicker.tex diff --git a/docs/latex/wx/filepicker.tex b/docs/latex/wx/filepicker.tex index ffa3e99652..a6fd8cb523 100644 --- a/docs/latex/wx/filepicker.tex +++ b/docs/latex/wx/filepicker.tex @@ -28,6 +28,10 @@ It is only available if \texttt{wxUSE\_FILEPICKERCTRL} is set to $1$ (the defaul +\wxheading{Library} + +\helpref{wxCore}{librarieslist} + \wxheading{Window styles} \twocolwidtha{5cm}% @@ -51,6 +55,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 +132,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 +147,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}} @@ -158,6 +181,10 @@ This event class is used for the events generated by +\wxheading{Library} + +\helpref{wxCore}{librarieslist} + \wxheading{Event handling} To process input from a wxFilePickerCtrl or from a wxDirPickerCtrl, use one of these event handler macros to @@ -195,3 +222,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. +