fixed 2 bugs in 2 lines of wxFileSelector example code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
801225c191
commit
f0f1207339
@ -1385,11 +1385,13 @@ The application must check for an empty return value (the user pressed
|
||||
Cancel). For example:
|
||||
|
||||
\begin{verbatim}
|
||||
const wxString& s = wxFileSelector("Choose a file to open");
|
||||
if (s)
|
||||
wxString filename = wxFileSelector("Choose a file to open");
|
||||
if ( !filename.empty() )
|
||||
{
|
||||
...
|
||||
// work with the file
|
||||
...
|
||||
}
|
||||
//else: cancelled by user
|
||||
\end{verbatim}
|
||||
|
||||
\wxheading{Include files}
|
||||
|
Loading…
Reference in New Issue
Block a user