Menu

#350 wxSlider code generation for wxWidgets 3.x

Undefined
fixed
wxSmith (61)
Bug_Report
2020-04-26
2016-05-10
Li Minggang
No

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 );

Discussion

  • ollydbg

    ollydbg - 2016-05-15
    • labels: --> wxSmith
    • assigned_to: ollydbg --> nobody
     
  • bluehazzard

    bluehazzard - 2020-04-26
    • status: open --> fixed
    • assigned_to: bluehazzard
     
  • bluehazzard

    bluehazzard - 2020-04-26

    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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.