1. wxTextCtrl::SetValue() moves the cursor to the end of text (as in GTK)
2. bug in wxThread::Delete() when the thread hadn't been staretd fixed 3. setting font for radiobox now works immediately (you had to invalidate the window manually, e.g. by covering it with another one, before) 4. added and documented wxConstCast() and wxStaticCast() 5. attempts to make wxFontEnumeraotr::EnumEncodings() work under MSW git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -716,11 +716,12 @@ bool wxRadioBox::SetFont(const wxFont& font)
|
||||
WXHFONT hfont = wxFont(font).GetResourceHandle();
|
||||
for ( int n = 0; n < m_noItems; n++ )
|
||||
{
|
||||
::SendMessage((HWND)m_radioButtons[n], WM_SETFONT, (WPARAM)hfont, 0L);
|
||||
}
|
||||
HWND hwndBtn = (HWND)m_radioButtons[n];
|
||||
::SendMessage(hwndBtn, WM_SETFONT, (WPARAM)hfont, 0L);
|
||||
|
||||
// this is needed because otherwise the buttons are not redrawn correctly
|
||||
Refresh();
|
||||
// otherwise the buttons are not redrawn correctly
|
||||
::InvalidateRect(hwndBtn, NULL, FALSE /* don't erase bg */);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user