]> git.saurik.com Git - wxWidgets.git/commitdiff
Minor fixes to code examples in wxPropertyGrid documentation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Sep 2011 20:28:37 +0000 (20:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Sep 2011 20:28:37 +0000 (20:28 +0000)
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

docs/doxygen/overviews/propgrid.h

index e27fac15c5806921cc2906d12dbe150d267f69b6..793e43dbdb4fd967986b663ac5e87164a138da15 100644 (file)
@@ -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() )
     {