Hello,
I am writing a new widget mslider (multiple slider).
The widget is derived from wxPanel. In the panel there are
four indipenedent draggable sliders (boxes). In the method
"void mouseMoved(wxMouseEvent& event);" the widget is redrawn.
I need to create a new event like EVT_SCROLL for wxSlider
to comunicate the changes in the slider position to the parent
window. The event shoul be triggered inside the method
"void mouseMoved(wxMouseEvent& event);".
Thx,
sy6502
Multiple slider
Re: Multiple slider
What's the question? How to create a new event type?
http://docs.wxwidgets.org/trunk/overvie ... nts_custom
BTW:
http://docs.wxwidgets.org/trunk/overvie ... nts_custom
BTW:
I recommend to just change the internal state of the control in the mouse event handler and then call Refresh()."In the method void mouseMoved(wxMouseEvent& event);" the widget is redrawn.
Use the source, Luke!