I wanted a slider in my app and I wanted to process slider events. I selected EVT_COMMAND_SCROLL in wxSmith and got the following in my code:
Connect(
XRCID("IDS_SLIDER"),
wxEVT_SCROLL_TOP | wxEVT_SCROLL_BOTTOM | wxEVT_SCROLL_LINEUP | wxEVT_SCROLL_LINEDOWN | wxEVT_SCROLL_PAGEUP | wxEVT_SCROLL_PAGEDOWN | wxEVT_SCROLL_THUMBRELEASE | wxEVT_SCROLL_CHANGED,
wxScrollEventHandler(MyFrame::OnSliderCmdScroll)
);
Or, approximately this :mrgreen: I have already deleted some events I did not want to process. It's a nonsense, events cannot be or'ed this way. Also, it does not work. If you want to process slider events then delete all this and leave only wxEVT_SCROLL_CHANGED. The event is marked "MSW only" in the reference but it is not. It works in Debian, too.