Wxdevc++ wxslider onScrollEnd = error

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
novarobotix
In need of some credit
In need of some credit
Posts: 2
Joined: Fri Dec 05, 2014 7:12 am

Wxdevc++ wxslider onScrollEnd = error

Postby novarobotix » Fri Dec 05, 2014 7:15 am

when i try add onScrollEnd event i get compilation error

54 G:\_1codegraf\smoz1Frm.cpp:31 invalid use of non-static member function 'void smoz1Frm::WxSlider1ScrollEnd2(wxScrollEvent&)'
video:
http://my-files.ru/Download/uvdio3/SDC12986.avi

User avatar
doublemax
Moderator
Moderator
Posts: 11477
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Wxdevc++ wxslider onScrollEnd = error

Postby doublemax » Fri Dec 05, 2014 10:42 am

Please paste the code that causes the error.
Use the source, Luke!

novarobotix
In need of some credit
In need of some credit
Posts: 2
Joined: Fri Dec 05, 2014 7:12 am

Re: Wxdevc++ wxslider onScrollEnd = error

Postby novarobotix » Fri Dec 05, 2014 11:28 am

project in attach. just put on form wxslider and doubleclick onscrollevent
Attachments
test.zip
(5.3 KiB) Downloaded 43 times

User avatar
doublemax
Moderator
Moderator
Posts: 11477
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Wxdevc++ wxslider onScrollEnd = error

Postby doublemax » Fri Dec 05, 2014 11:34 am

Sorry, i don't use wxDev-C++, so i can't help with this. I'm moving the topic to wxDev-C++.
Use the source, Luke!

jgrzybowski
Earned some good credits
Earned some good credits
Posts: 113
Joined: Sat Sep 24, 2011 9:32 pm
Location: Poland

Re: Wxdevc++ wxslider onScrollEnd = error

Postby jgrzybowski » Fri Feb 27, 2015 9:06 pm

I have used version 7.3.1.3 of wxDevC++. In one of my small programs I have got wxSlider with the same function. In this version it works fine:

Code: Select all

EVT_COMMAND_SCROLL_ENDSCROLL(ID_SLIDERMAXPRAD,Chrome_CalcFrm::sliderMaxPradScrollEnd)

You can consider to take a look inside of file <wx/slider.h>, there should be declaration of EVT_COMMAND_SCROLL_ENDSCROLL. You should also read following topic:
https://forums.wxwidgets.org/viewtopic.php?f=27&t=7151
Regards, Jarek


Return to “wxDev-C++”

Who is online

Users browsing this forum: No registered users and 1 guest