Use bool constants instead of BOOL ones in propgrid sample.
s/FALSE/false/ and s/TRUE/true for the sake of consistency. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -626,7 +626,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
pgman->SetPropertyValue(wxT("StringProperty"),wxT("Text1"));
|
||||
pgman->SetPropertyValue(wxT("IntProperty"),1024);
|
||||
pgman->SetPropertyValue(wxT("FloatProperty"),1024.0000000001);
|
||||
pgman->SetPropertyValue(wxT("BoolProperty"),FALSE);
|
||||
pgman->SetPropertyValue(wxT("BoolProperty"),false);
|
||||
pgman->SetPropertyValue(wxT("EnumProperty"),120);
|
||||
pgman->SetPropertyValue(wxT("ArrayStringProperty"),test_arrstr_1);
|
||||
wxColour emptyCol;
|
||||
@@ -648,7 +648,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
RT_FAILURE();
|
||||
if ( pg->GetPropertyValueAsDouble(wxT("FloatProperty")) != 1024.0000000001 )
|
||||
RT_FAILURE();
|
||||
if ( pg->GetPropertyValueAsBool(wxT("BoolProperty")) != FALSE )
|
||||
if ( pg->GetPropertyValueAsBool(wxT("BoolProperty")) != false )
|
||||
RT_FAILURE();
|
||||
if ( pg->GetPropertyValueAsLong(wxT("EnumProperty")) != 120 )
|
||||
RT_FAILURE();
|
||||
@@ -678,7 +678,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
pg->SetPropertyValue(wxT("StringProperty"),wxT("Text2"));
|
||||
pg->SetPropertyValue(wxT("IntProperty"),512);
|
||||
pg->SetPropertyValue(wxT("FloatProperty"),512.0);
|
||||
pg->SetPropertyValue(wxT("BoolProperty"),TRUE);
|
||||
pg->SetPropertyValue(wxT("BoolProperty"),true);
|
||||
pg->SetPropertyValue(wxT("EnumProperty"),80);
|
||||
pg->SetPropertyValue(wxT("ArrayStringProperty"),test_arrstr_2);
|
||||
pg->SetPropertyValue(wxT("ColourProperty"),(wxObject*)wxWHITE);
|
||||
@@ -699,7 +699,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
RT_FAILURE();
|
||||
if ( pgman->GetPropertyValueAsDouble(wxT("FloatProperty")) != 512.0 )
|
||||
RT_FAILURE();
|
||||
if ( pgman->GetPropertyValueAsBool(wxT("BoolProperty")) != TRUE )
|
||||
if ( pgman->GetPropertyValueAsBool(wxT("BoolProperty")) != true )
|
||||
RT_FAILURE();
|
||||
if ( pgman->GetPropertyValueAsLong(wxT("EnumProperty")) != 80 )
|
||||
RT_FAILURE();
|
||||
@@ -1139,7 +1139,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
{
|
||||
RT_START_TEST(SetPropertyBackgroundColour)
|
||||
wxCommandEvent evt;
|
||||
evt.SetInt(1); // IsChecked() will return TRUE.
|
||||
evt.SetInt(1); // IsChecked() will return true.
|
||||
evt.SetId(ID_COLOURSCHEME4);
|
||||
OnCatColours(evt);
|
||||
OnColourScheme(evt);
|
||||
|
Reference in New Issue
Block a user