Adjust the font size when DPI of window changes
This commit is contained in:
committed by
Maarten Bent
parent
e3d3a0b7e8
commit
e563d4858a
@@ -592,6 +592,11 @@ public:
|
||||
void MSWUpdateOnDPIChange(const wxSize& oldDPI, const wxSize& newDPI);
|
||||
|
||||
protected:
|
||||
// Called from MSWUpdateOnDPIChange() specifically to update the control
|
||||
// font, as this may need to be done differently for some specific native
|
||||
// controls. The default version updates m_font of this window.
|
||||
virtual void MSWUpdateFontOnDPIChange(const wxSize& newDPI);
|
||||
|
||||
// this allows you to implement standard control borders without
|
||||
// repeating the code in different classes that are not derived from
|
||||
// wxControl
|
||||
|
Reference in New Issue
Block a user