Motif and other mods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -83,10 +83,12 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
|
||||
|
||||
SetValue(value);
|
||||
|
||||
m_windowFont = parent->GetFont();
|
||||
ChangeFont(FALSE);
|
||||
|
||||
SetCanAddEventHandler(TRUE);
|
||||
AttachWidget (parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, size.x, size.y);
|
||||
|
||||
SetFont(* parent->GetFont());
|
||||
ChangeBackgroundColour();
|
||||
|
||||
return TRUE;
|
||||
@@ -207,10 +209,10 @@ void wxComboBoxCallback (Widget w, XtPointer clientData,
|
||||
}
|
||||
}
|
||||
|
||||
void wxComboBox::ChangeFont()
|
||||
void wxComboBox::ChangeFont(bool keepOriginalSize)
|
||||
{
|
||||
// Don't use the base class wxChoice's ChangeFont
|
||||
wxWindow::ChangeFont();
|
||||
wxWindow::ChangeFont(keepOriginalSize);
|
||||
}
|
||||
|
||||
void wxComboBox::ChangeBackgroundColour()
|
||||
|
Reference in New Issue
Block a user