Set 'Min' attribute for the sample wxFloatProperty
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1471,9 +1471,10 @@ void FormMain::PopulateWithExamples ()
|
|||||||
pg->SetPropertyHelpString( wxT("BoolProperty with CheckBox"),
|
pg->SetPropertyHelpString( wxT("BoolProperty with CheckBox"),
|
||||||
wxT("Property attribute wxPG_BOOL_USE_CHECKBOX has been set to true.") );
|
wxT("Property attribute wxPG_BOOL_USE_CHECKBOX has been set to true.") );
|
||||||
|
|
||||||
pid = pg->Append( new wxFloatProperty( wxT("FloatProperty"),
|
prop = pg->Append( new wxFloatProperty("FloatProperty",
|
||||||
wxPG_LABEL,
|
wxPG_LABEL,
|
||||||
1234500.23 ) );
|
1234500.23) );
|
||||||
|
prop->SetAttribute("Min", -100.12);
|
||||||
|
|
||||||
// A string property that can be edited in a separate editor dialog.
|
// A string property that can be edited in a separate editor dialog.
|
||||||
pg->Append( new wxLongStringProperty( wxT("LongStringProperty"), wxT("LongStringProp"),
|
pg->Append( new wxLongStringProperty( wxT("LongStringProperty"), wxT("LongStringProp"),
|
||||||
|
Reference in New Issue
Block a user