+ wxWindow::ChangeFont(keepOriginalSize);
+}
+
+void wxSlider::ChangeBackgroundColour()
+{
+ wxWindow::ChangeBackgroundColour();
+}
+
+void wxSlider::ChangeForegroundColour()
+{
+ wxWindow::ChangeForegroundColour();
+}
+
+void wxSliderCallback (Widget widget, XtPointer clientData, XmScaleCallbackStruct * cbs)
+{
+ wxSlider *slider = (wxSlider *) clientData;
+ switch (cbs->reason)
+ {
+ case XmCR_VALUE_CHANGED:
+ case XmCR_DRAG:
+ default:
+ {
+ // TODO: the XmCR_VALUE_CHANGED case should be handled
+ // differently (it's not sent continually as the slider moves).
+ // In which case we need a similar behaviour for other platforms.
+
+ wxScrollEvent event(wxEVT_SCROLL_THUMBTRACK, slider->GetId());
+ XtVaGetValues (widget, XmNvalue, &event.m_commandInt, NULL);
+ event.SetEventObject(slider);
+ slider->ProcessCommand(event);
+
+ // Also send a wxCommandEvent for compatibility.
+ wxCommandEvent event2(wxEVT_COMMAND_SLIDER_UPDATED, slider->GetId());
+ event2.SetEventObject(slider);
+ slider->ProcessCommand(event2);
+ break;
+ }
+ }