From 22cc1736ab9492246d3ead816e14239027957675 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Mon, 29 Jun 2015 00:04:47 +0200 Subject: [PATCH] Add the demonstration of wxEnumProperty with value bitmap to propgrid sample. --- samples/propgrid/propgrid.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/samples/propgrid/propgrid.cpp b/samples/propgrid/propgrid.cpp index e6bd2ca108..8bf78fdf4b 100644 --- a/samples/propgrid/propgrid.cpp +++ b/samples/propgrid/propgrid.cpp @@ -1370,6 +1370,14 @@ void FormMain::PopulateWithExamples () pg->SetPropertyHelpString(wxT("EnumProperty 4"), wxT("Should have one extra item when compared to EnumProperty 3")); + // Plus property value bitmap + pg->Append( new wxEnumProperty(wxS("EnumProperty With Bitmap"), wxS("EnumProperty 5"), + soc, 280) ); + pg->SetPropertyHelpString(wxS("EnumProperty 5"), + wxS("Should have bitmap in front of the displayed value")); + wxBitmap bmpVal = wxArtProvider::GetBitmap(wxART_REMOVABLE); + pg->SetPropertyImage(wxS("EnumProperty 5"), bmpVal); + // Password property example. pg->Append( new wxStringProperty(wxT("Password"),wxPG_LABEL, wxT("password")) ); pg->SetPropertyAttribute( wxT("Password"), wxPG_STRING_PASSWORD, true );