+
+ wxScrollEvent event(scrollEvent, slider->GetId());
+ int commandInt = event.GetInt();
+ XtVaGetValues (widget, XmNvalue, &commandInt, NULL);
+ event.SetInt(commandInt);
+ event.SetEventObject(slider);
+ slider->GetEventHandler()->ProcessEvent(event);
+
+ // Also send a wxCommandEvent for compatibility.
+ wxCommandEvent event2(wxEVT_COMMAND_SLIDER_UPDATED, slider->GetId());
+ event2.SetEventObject(slider);
+ event2.SetInt( event.GetInt() );
+ slider->GetEventHandler()->ProcessEvent(event2);