]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/listbox.cpp
Fixed wxMotif's wxExecute again, added OnPaint capability to wxFrame,
[wxWidgets.git] / src / motif / listbox.cpp
index a31b554ed9412b4ba61b5999d250626fec933aea..8bf42b0cf663070cbd34fe34e9a3a509cf420121 100644 (file)
@@ -111,6 +111,7 @@ bool wxListBox::Create(wxWindow *parent, wxWindowID id,
     m_windowFont = parent->GetFont();
     ChangeFont(FALSE);
     
+    SetCanAddEventHandler(TRUE);
     AttachWidget (parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, width, height);
     
     ChangeBackgroundColour();
@@ -759,12 +760,19 @@ void wxListBox::ChangeBackgroundColour()
         XmNverticalScrollBar, &vsb,
         NULL);
     
-        /* TODO: should scrollbars be affected? Should probably have separate
-        * function to change them (by default, taken from wxSystemSettings)
+   /* TODO: should scrollbars be affected? Should probably have separate
+    * function to change them (by default, taken from wxSystemSettings)
     */
     wxColour backgroundColour = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE);
     DoChangeBackgroundColour((WXWidget) hsb, backgroundColour, TRUE);
     DoChangeBackgroundColour((WXWidget) vsb, backgroundColour, TRUE);
+
+    XtVaSetValues (hsb,
+        XmNtroughColor, backgroundColour.AllocColour(XtDisplay(hsb)),
+        NULL);
+    XtVaSetValues (vsb,
+        XmNtroughColor, backgroundColour.AllocColour(XtDisplay(vsb)),
+        NULL);
     
     DoChangeBackgroundColour((WXWidget) parent, m_backgroundColour, TRUE);
 }