]> git.saurik.com Git - wxWidgets.git/commitdiff
Set 'Min' attribute for the sample wxFloatProperty
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 25 Jul 2010 09:23:25 +0000 (09:23 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 25 Jul 2010 09:23:25 +0000 (09:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/propgrid/propgrid.cpp

index a4fe375cc0abc52dd059867ffc9444b8795da0f8..5deb6931601976b8e4c3e69245ca36b3d8508037 100644 (file)
@@ -1471,9 +1471,10 @@ void FormMain::PopulateWithExamples ()
     pg->SetPropertyHelpString( wxT("BoolProperty with CheckBox"),
         wxT("Property attribute wxPG_BOOL_USE_CHECKBOX has been set to true.") );
 
-     pid = pg->Append( new wxFloatProperty( wxT("FloatProperty"),
-                                       wxPG_LABEL,
-                                       1234500.23 ) );
+    prop = pg->Append( new wxFloatProperty("FloatProperty",
+                                           wxPG_LABEL,
+                                           1234500.23) );
+    prop->SetAttribute("Min", -100.12);
 
     // A string property that can be edited in a separate editor dialog.
     pg->Append( new wxLongStringProperty( wxT("LongStringProperty"), wxT("LongStringProp"),