Fix font of wxRadioBox after DPI change
This commit is contained in:
@@ -162,6 +162,8 @@ protected:
|
||||
|
||||
virtual WXHRGN MSWGetRegionWithoutChildren() wxOVERRIDE;
|
||||
|
||||
virtual void MSWUpdateFontOnDPIChange(const wxSize& newDPI) wxOVERRIDE;
|
||||
|
||||
// resolve ambiguity in base classes
|
||||
virtual wxBorder GetDefaultBorder() const wxOVERRIDE { return wxRadioBoxBase::GetDefaultBorder(); }
|
||||
|
||||
|
@@ -751,6 +751,14 @@ int wxRadioBox::GetItemFromPoint(const wxPoint& pt) const
|
||||
return wxNOT_FOUND;
|
||||
}
|
||||
|
||||
void wxRadioBox::MSWUpdateFontOnDPIChange(const wxSize& newDPI)
|
||||
{
|
||||
wxStaticBox::MSWUpdateFontOnDPIChange(newDPI);
|
||||
|
||||
if ( m_font.IsOk() )
|
||||
m_radioButtons->SetFont(m_font);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// radio box drawing
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user