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
Wxdevc++ wxslider onScrollEnd = error
-
- In need of some credit
- Posts: 2
- Joined: Fri Dec 05, 2014 7:12 am
Re: Wxdevc++ wxslider onScrollEnd = error
Please paste the code that causes the error.
Use the source, Luke!
-
- In need of some credit
- Posts: 2
- Joined: Fri Dec 05, 2014 7:12 am
Re: Wxdevc++ wxslider onScrollEnd = error
project in attach. just put on form wxslider and doubleclick onscrollevent
- Attachments
-
- test.zip
- (5.3 KiB) Downloaded 141 times
Re: Wxdevc++ wxslider onScrollEnd = error
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!
-
- Earned some good credits
- Posts: 113
- Joined: Sat Sep 24, 2011 9:32 pm
- Location: Poland
Re: Wxdevc++ wxslider onScrollEnd = error
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:
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
Code: Select all
EVT_COMMAND_SCROLL_ENDSCROLL(ID_SLIDERMAXPRAD,Chrome_CalcFrm::sliderMaxPradScrollEnd)
viewtopic.php?f=27&t=7151
Regards, Jarek