- 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;
- }
+ case XmCR_VALUE_CHANGED:
+ scrollEvent = wxEVT_SCROLL_THUMBRELEASE;
+ break;
+
+ case XmCR_DRAG:
+ scrollEvent = wxEVT_SCROLL_THUMBTRACK;
+ break;
+
+ default:
+ return;