Make wxPenStyleComboBox in Combo sample DPI aware
This commit is contained in:
parent
1e17e8f500
commit
dbcfe56ae5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user