git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8954
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void MyFrame::DoChangeFont(const wxFont& font, const wxColour& col)
{
- Resize(GetSize(), font);
+ Resize(GetClientSize(), font);
m_canvas->SetTextFont(font);
if ( col.Ok() )
void MyFrame::OnSize(wxSizeEvent& event)
{
- wxSize size = event.GetSize();
-
- Resize(size);
+ Resize(GetClientSize());
event.Skip();
}
bool wxFont::Create(const wxString& fontname, wxFontEncoding enc)
{
- Init();
-
if( !fontname )
{
*this = wxSystemSettings::GetSystemFont( wxSYS_DEFAULT_GUI_FONT);
bool wxFont::Create(const wxString& fontname, wxFontEncoding enc)
{
- Init();
-
if( !fontname )
{
*this = wxSystemSettings::GetSystemFont( wxSYS_DEFAULT_GUI_FONT);