X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f3f38980f10a935f3b47dbf0d3b4643e96a4be2..1667f96a859a4c21606e8a30d792c333dd0adaa3:/samples/propgrid/propgrid.cpp diff --git a/samples/propgrid/propgrid.cpp b/samples/propgrid/propgrid.cpp index 99586e6e30..afd52d9cb7 100644 --- a/samples/propgrid/propgrid.cpp +++ b/samples/propgrid/propgrid.cpp @@ -322,7 +322,7 @@ public: wxString s = ::wxGetSingleChoice(wxT("Message"), wxT("Caption"), m_choices.GetLabels()); - if ( s.length() ) + if ( !s.empty() ) { SetValue(s); return true; @@ -650,7 +650,7 @@ void FormMain::OnPropertyGridChanging( wxPropertyGridEvent& event ) event.Veto(); // Since we ask a question, it is better if we omit any validation - // failure behavior. + // failure behaviour. event.SetValidationFailureBehavior(0); } } @@ -711,7 +711,7 @@ void FormMain::OnPropertyGridChange( wxPropertyGridEvent& event ) if ( name == wxT("Font") ) { wxFont font = wxANY_AS(value, wxFont); - wxASSERT( font.Ok() ); + wxASSERT( font.IsOk() ); m_pPropGridManager->SetFont( font ); } @@ -1098,7 +1098,7 @@ void FormMain::PopulateWithStandardItems () pg->SetPropertyAttribute(wxT("Y"), wxPG_ATTR_UNITS, wxT("Pixels") ); pg->SetPropertyHelpString(wxT("Y"), wxT("This property uses \"Units\" attribute.") ); - const wxChar* disabledHelpString = wxT("This property is simply disabled. Inorder to have label disabled as well, ") + const wxChar* disabledHelpString = wxT("This property is simply disabled. In order to have label disabled as well, ") wxT("you need to set wxPG_EX_GREY_LABEL_WHEN_DISABLED using SetExtraStyle."); pg->Append( new wxPropertyCategory(wxT("Environment"),wxPG_LABEL) ); @@ -1932,7 +1932,7 @@ void FormMain::CreateGrid( int style, int extraStyle ) pgman->SetExtraStyle(extraStyle); - // This is the default validation failure behavior + // This is the default validation failure behaviour m_pPropGridManager->SetValidationFailureBehavior( wxPG_VFB_MARK_CELL | wxPG_VFB_SHOW_MESSAGEBOX );