if( !CreateControl( parent, id, pos, size, style, validator, name ) )
return false;
+ PreCreation();
m_lineSize = 1;
m_windowStyle = style;
XtAddCallback (sliderWidget, XmNvalueChangedCallback, (XtCallbackProc) wxSliderCallback, (XtPointer) this);
XtAddCallback (sliderWidget, XmNdragCallback, (XtCallbackProc) wxSliderCallback, (XtPointer) this);
- ChangeFont(false);
+ PostCreation();
AttachWidget (parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, size.x, size.y);
- ChangeBackgroundColour();
-
return true;
}
XtVaGetValues (widget, XmNvalue, &commandInt, NULL);
event.SetInt(commandInt);
event.SetEventObject(slider);
- slider->GetEventHandler()->ProcessEvent(event);
+ slider->HandleWindowEvent(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);
+ slider->HandleWindowEvent(event2);
}
#endif // wxUSE_SLIDER