If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
./include/wx/stc/stc.h:5413:18: error: 'ShouldHandleKeyNavigation' marked 'override' but does not override any member functions
virtual bool ShouldHandleKeyNavigation(
^
In file included from ./src/stc/PlatWX.cpp:46:
./include/wx/stc/stc.h:5413:18: error: 'ShouldHandleKeyNavigation' marked 'override' but does not override any member functions
virtual bool ShouldHandleKeyNavigation(
^
1 error generated.
make: *** [stcdll_PlatWX.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ./src/stc/ScintillaWX.cpp:45:
./include/wx/stc/stc.h:5413:18: error: 'ShouldHandleKeyNavigation' marked 'override' but does not override any member functions
virtual bool ShouldHandleKeyNavigation(
^
1 error generated.
make: *** [stcdll_stc.o] Error 1
1 error generated.
make: *** [stcdll_ScintillaWX.o] Error 1
I will try to remove override and see
Chief Justice: We have trouble dear citizens! Citizens: What it is his honor? Chief Justice:Our president is an atheist, who will he swear to?
Ok, I see now that ShouldHandleKeyNavigation is a member of the implementation member that the window forwards all of its calls to (I was thinking it was a member of wxWindow itself).
So what needs to be done is to derive a new class from wxWidgetCocoaImpl, override ShouldHandleKeyNavigation to make it return false, and set the wxSTC to use that new Impl class instead of the default one. I don't know how to do that last part.
New Pagodi wrote:Ok, I see now that ShouldHandleKeyNavigation is a member of the implementation member that the window forwards all of its calls to (I was thinking it was a member of wxWindow itself).
So what needs to be done is to derive a new class from wxWidgetCocoaImpl, override ShouldHandleKeyNavigation to make it return false, and set the wxSTC to use that new Impl class instead of the default one. I don't know how to do that last part.
My knowledge of ObjC/Cocoa is betraying me. It's next to zero
I hope someone with knowledge on that picks it up!
Chief Justice: We have trouble dear citizens! Citizens: What it is his honor? Chief Justice:Our president is an atheist, who will he swear to?