Make wxPenStyleComboBox in Combo sample DPI aware

This commit is contained in:
Maarten Bent 2021-02-13 01:42:10 +01:00
parent 1e17e8f500
commit dbcfe56ae5

View File

@ -252,10 +252,7 @@ public:
virtual wxCoord OnMeasureItem( size_t item ) const wxOVERRIDE virtual wxCoord OnMeasureItem( size_t item ) const wxOVERRIDE
{ {
// Simply demonstrate the ability to have variable-height items // Simply demonstrate the ability to have variable-height items
if ( item & 1 ) return FromDIP( item & 1 ? 36 : 24 );
return 36;
else
return 24;
} }
virtual wxCoord OnMeasureItemWidth( size_t WXUNUSED(item) ) const wxOVERRIDE virtual wxCoord OnMeasureItemWidth( size_t WXUNUSED(item) ) const wxOVERRIDE