From: Vadim Zeitlin Date: Sun, 18 Sep 2011 20:28:37 +0000 (+0000) Subject: Minor fixes to code examples in wxPropertyGrid documentation. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c5512cab0f6d0c8f1f7c817337844b5c4b718615 Minor fixes to code examples in wxPropertyGrid documentation. Fix typo in wxPGProperty name and add missing parameter of GetVIterator() call. Closes #13486. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/doxygen/overviews/propgrid.h b/docs/doxygen/overviews/propgrid.h index e27fac15c5..793e43dbdb 100644 --- a/docs/doxygen/overviews/propgrid.h +++ b/docs/doxygen/overviews/propgrid.h @@ -145,9 +145,9 @@ argument, using which you can refer to properties either by their pointer @code // Add a file selector property. - wxPGPropety* prop = pg->Append( new wxFileProperty("FileProperty", - wxPG_LABEL, - wxEmptyString) ); + wxPGProperty* prop = pg->Append( new wxFileProperty("FileProperty", + wxPG_LABEL, + wxEmptyString) ); // Valid: Set wild card by name pg->SetPropertyAttribute( "FileProperty", @@ -578,7 +578,7 @@ iterator is limited to forward iteration. wxPGVIterator it; - for ( it = manager->GetVIterator(); + for ( it = manager->GetVIterator(wxPG_ITERATE_ALL); !it.AtEnd(); it.Next() ) {