]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/scrolbar.cpp
Added (untested) support for sub-locales.
[wxWidgets.git] / src / motif / scrolbar.cpp
index 08dca34d54074860576b1131ff5a39fe7a3a5099..5bd38a4ee53ba900df16bfffcca865c922f3a842 100644 (file)
@@ -155,16 +155,21 @@ void wxScrollBar::Command(wxCommandEvent& event)
 void wxScrollBar::ChangeFont(bool keepOriginalSize)
 {
     // TODO
+    // Do anything for a scrollbar? A font will never be seen.
 }
 
 void wxScrollBar::ChangeBackgroundColour()
 {
-    // TODO
+    wxWindow::ChangeBackgroundColour();
+
+    XtVaSetValues ((Widget) GetMainWidget(),
+        XmNtroughColor, m_backgroundColour.AllocColour(XtDisplay((Widget) GetMainWidget())),
+        NULL);
 }
 
 void wxScrollBar::ChangeForegroundColour()
 {
-    // TODO
+    wxWindow::ChangeForegroundColour();
 }
 
 static void wxScrollBarCallback(Widget widget, XtPointer clientData,