Updated from Mahogany.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1157,21 +1157,21 @@ void wxLayoutWindow::OnMenu(wxCommandEvent& event)
|
|||||||
switch (event.GetId())
|
switch (event.GetId())
|
||||||
{
|
{
|
||||||
case WXLOWIN_MENU_LARGER:
|
case WXLOWIN_MENU_LARGER:
|
||||||
m_llist->SetFontLarger(); Refresh(FALSE); break;
|
m_llist->SetFontLarger(); DoPaint(); break;
|
||||||
case WXLOWIN_MENU_SMALLER:
|
case WXLOWIN_MENU_SMALLER:
|
||||||
m_llist->SetFontSmaller(); Refresh(FALSE); break;
|
m_llist->SetFontSmaller(); DoPaint(); break;
|
||||||
case WXLOWIN_MENU_UNDERLINE:
|
case WXLOWIN_MENU_UNDERLINE:
|
||||||
m_llist->ToggleFontUnderline(); Refresh(FALSE); break;
|
m_llist->ToggleFontUnderline(); DoPaint(); break;
|
||||||
case WXLOWIN_MENU_BOLD:
|
case WXLOWIN_MENU_BOLD:
|
||||||
m_llist->ToggleFontWeight(); Refresh(FALSE); break;
|
m_llist->ToggleFontWeight(); DoPaint(); break;
|
||||||
case WXLOWIN_MENU_ITALICS:
|
case WXLOWIN_MENU_ITALICS:
|
||||||
m_llist->ToggleFontItalics(); Refresh(FALSE); break;
|
m_llist->ToggleFontItalics(); DoPaint(); break;
|
||||||
case WXLOWIN_MENU_ROMAN:
|
case WXLOWIN_MENU_ROMAN:
|
||||||
m_llist->SetFontFamily(wxROMAN); Refresh(FALSE); break;
|
m_llist->SetFontFamily(wxROMAN); DoPaint(); break;
|
||||||
case WXLOWIN_MENU_TYPEWRITER:
|
case WXLOWIN_MENU_TYPEWRITER:
|
||||||
m_llist->SetFontFamily(wxFIXED); Refresh(FALSE); break;
|
m_llist->SetFontFamily(wxFIXED); DoPaint(); break;
|
||||||
case WXLOWIN_MENU_SANSSERIF:
|
case WXLOWIN_MENU_SANSSERIF:
|
||||||
m_llist->SetFontFamily(wxSWISS); Refresh(FALSE); break;
|
m_llist->SetFontFamily(wxSWISS); DoPaint(); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1184,7 +1184,7 @@ wxLayoutWindow::OnSetFocus(wxFocusEvent &ev)
|
|||||||
{
|
{
|
||||||
m_HaveFocus = true;
|
m_HaveFocus = true;
|
||||||
ev.Skip();
|
ev.Skip();
|
||||||
Refresh(FALSE); // cursor must change
|
DoPaint(); // cursor must change
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -1192,7 +1192,7 @@ wxLayoutWindow::OnKillFocus(wxFocusEvent &ev)
|
|||||||
{
|
{
|
||||||
m_HaveFocus = false;
|
m_HaveFocus = false;
|
||||||
ev.Skip();
|
ev.Skip();
|
||||||
Refresh(FALSE);// cursor must change
|
DoPaint();// cursor must change
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user