X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b0f1bdde5a4e8559078a566fb93e050b64940f32..0d57be459406c2830f6abc9d99ae99166c6d133b:/src/motif/listbox.cpp diff --git a/src/motif/listbox.cpp b/src/motif/listbox.cpp index 8bf509bbbe..a964a11588 100644 --- a/src/motif/listbox.cpp +++ b/src/motif/listbox.cpp @@ -53,6 +53,8 @@ bool wxListBox::Create(wxWindow *parent, wxWindowID id, m_windowStyle = style; m_noItems = n; m_selected = 0; + m_backgroundColour = parent->GetBackgroundColour(); + m_foregroundColour = parent->GetForegroundColour(); SetName(name); SetValidator(validator); @@ -107,11 +109,10 @@ bool wxListBox::Create(wxWindow *parent, wxWindowID id, AttachWidget (parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, width, height); - wxSystemSettings settings; - SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_WINDOW)); + m_backgroundColour = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_WINDOW); SetFont(* parent->GetFont()); - ChangeColour(m_mainWidget); + ChangeBackgroundColour(); return TRUE; } @@ -739,3 +740,19 @@ WXWidget wxListBox::GetTopWidget() const { return (WXWidget) XtParent( (Widget) m_mainWidget ); } + +void wxListBox::ChangeFont() +{ + // TODO +} + +void wxListBox::ChangeBackgroundColour() +{ + // TODO +} + +void wxListBox::ChangeForegroundColour() +{ + // TODO +} +