The code generator for wxSlider should be updated for latest wxWidgets 3.x series.
The event for wxSlider change has been changed from (wxEVT_SCROLL_TOP | wxEVT_SCROLL_BOTTOM | wxEVT_SCROLL_LINEUP | wxEVT_SCROLL_LINEDOWN | wxEVT_SCROLL_PAGEUP | wxEVT_SCROLL_PAGEDOWN | wxEVT_SCROLL_THUMBTRACK | wxEVT_SCROLL_THUMBRELEASE | wxEVT_SCROLL_CHANGED) to wxEVT_COMMAND_SLIDER_UPDATED.
Eg:
From:
Connect( ID_WXSLIDERTRANSDEGREE, wxEVT_SCROLL_TOP | wxEVT_SCROLL_BOTTOM | wxEVT_SCROLL_LINEUP | wxEVT_SCROLL_LINEDOWN | wxEVT_SCROLL_PAGEUP | wxEVT_SCROLL_PAGEDOWN | wxEVT_SCROLL_THUMBTRACK | wxEVT_SCROLL_THUMBRELEASE | wxEVT_SCROLL_CHANGED, ( wxObjectEventFunction )&MadSearchReplaceDialog::WxSliderTransDegreeScroll );
To:
Connect( ID_WXSLIDERTRANSDEGREE, wxEVT_COMMAND_SLIDER_UPDATED, ( wxObjectEventFunction )&MadSearchReplaceDialog::WxSliderTransDegreeScroll );
It is not exclusive.. I have added the new event in [r12073]
[edit2:] I do not add compiler guards for wx2.8, we do not support it anymore...
Related
Commit: [r12073]
Last edit: bluehazzard 2020-04-26