- {
- // 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);
- event2.SetInt( event.GetInt() );
- slider->ProcessCommand(event2);
- break;
- }