Fix wx[Check]ListBox font and margin on DPI change
These control are drawn using a wxDC. When the DPI changes, call SetFont to update the font of the wxDC. First call wxListBoxBase::SetFont() so m_font is updated to the new DPI, then use this font in the wxDC. For wxCheckListBox update the margins to fit the changed checkbox size.
This commit is contained in:
@@ -81,6 +81,8 @@ protected:
|
||||
ProcessCommand(event);
|
||||
}
|
||||
|
||||
virtual void MSWUpdateFontOnDPIChange(const wxSize& newDPI) wxOVERRIDE;
|
||||
|
||||
wxSize DoGetBestClientSize() const wxOVERRIDE;
|
||||
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
|
Reference in New Issue
Block a user