Wxdevc++ wxslider onScrollEnd = error

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
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

Post by novarobotix »

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: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Wxdevc++ wxslider onScrollEnd = error

Post by doublemax »

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

Post by novarobotix »

project in attach. just put on form wxslider and doubleclick onscrollevent
Attachments
test.zip
(5.3 KiB) Downloaded 140 times
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Wxdevc++ wxslider onScrollEnd = error

Post by doublemax »

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

Post by jgrzybowski »

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:
viewtopic.php?f=27&t=7151
Regards, Jarek
Post Reply