return false;
wxWindow* wnd = GetWindow();
- if ( !wnd->IsKindOf(CLASSINFO(wxTextCtrl)) )
+ if ( !wxDynamicCast(wnd, wxTextCtrl) )
return true;
// Do not allow zero-length string
// unless property has string as preferred value type
// To reduce code size, use conversion here as well
if ( value.GetType() == wxPG_VARIANT_TYPE_STRING &&
- !this->IsKindOf(CLASSINFO(wxEditEnumProperty)) )
+ !wxDynamicCastThis(wxEditEnumProperty) )
return ValueFromString_( value, value.GetString(), wxPG_PROPERTY_SPECIFIC );
return true;
bool asText = false;
- bool isEdit = this->IsKindOf(CLASSINFO(wxEditEnumProperty));
+ bool isEdit = this->IsKindOf(wxCLASSINFO(wxEditEnumProperty));
// If text not any of the choices, store as text instead
// (but only if we are wxEditEnumProperty)
wxString path;
int indFilter = -1;
- if ( property->IsKindOf(CLASSINFO(wxFileProperty)) )
+ if ( wxDynamicCast(property, wxFileProperty) )
{
fileProp = ((wxFileProperty*)property);
wxFileName filename = fileProp->GetValue().GetString();
if ( flags & Escape )
{
preas = delimiter;
- pdr = wxS("\\") + static_cast<wchar_t>(delimiter);
+ pdr = wxS("\\");
+ pdr += delimiter;
}
if ( itemCount )