Prepare propgrid sample to build successfully when wxUSE_LONGLONG is disabled.

Make the code ready to build even when wxLongLong type is not available.
This commit is contained in:
Artur Wieczorek
2015-04-03 21:13:44 +02:00
parent 7c6943175b
commit 726a5e1155
2 changed files with 16 additions and 0 deletions

View File

@@ -1422,7 +1422,11 @@ void FormMain::PopulateWithExamples ()
pg->Append( new wxPointProperty( wxT("PointProperty"), wxT("Position"), GetPosition() ) );
// UInt samples
#if wxUSE_LONGLONG
pg->Append( new wxUIntProperty( wxT("UIntProperty"), wxPG_LABEL, wxULongLong(wxULL(0xFEEEFEEEFEEE))));
#else
pg->Append( new wxUIntProperty( wxT("UIntProperty"), wxPG_LABEL, 0xFEEEFEEE));
#endif
pg->SetPropertyAttribute( wxT("UIntProperty"), wxPG_UINT_PREFIX, wxPG_PREFIX_NONE );
pg->SetPropertyAttribute( wxT("UIntProperty"), wxPG_UINT_BASE, wxPG_BASE_HEX );
//pg->SetPropertyAttribute( wxT("UIntProperty"), wxPG_UINT_PREFIX, wxPG_PREFIX_NONE );