Page 1 of 1

Multiple slider

Posted: Sun Oct 18, 2015 7:45 pm
by sy6502
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

Re: Multiple slider

Posted: Sun Oct 18, 2015 9:36 pm
by doublemax
What's the question? How to create a new event type?
http://docs.wxwidgets.org/trunk/overvie ... nts_custom

BTW:
"In the method void mouseMoved(wxMouseEvent& event);" the widget is redrawn.
I recommend to just change the internal state of the control in the mouse event handler and then call Refresh().