Search found 6 matches

by Edwin
Wed Jul 26, 2006 6:09 am
Forum: C++ Development
Topic: Split window fails to capture OnChar event
Replies: 2
Views: 835

Hi all, The key events don't get sent through to the parent by design. Only the control with the focus receives the EVT_CHAR events, and they are not propagated to it's parents. I had the same problems but solved it with the help of Finn. The thread with a solution can be found here . The main trick...
by Edwin
Tue Apr 04, 2006 6:15 am
Forum: C++ Development
Topic: My wxWidgets application doesn't run in other computers,why?
Replies: 14
Views: 4219

I had the same problems, but with the great walkthrough at http://forums.wxwidgets.org/viewtopic.php?t=6357 all my troubles disappeared :-) This way you don't have the msvc*.dll dependencies either, because you link them statically in your application. It involves adjusting the compiler settings fro...
by Edwin
Fri Feb 10, 2006 8:40 am
Forum: The Code Dump
Topic: handling control events (incl. mouse) in parent window
Replies: 5
Views: 18594

G'day finn, I think the fact that every wxWindow is also derived from wxEvtHandler, has more to do with the ease of using this object and sending events to it within the widgets library and from other code. And that it's not supposed to be 'tempered' with by reassigning it to another control :) My g...
by Edwin
Thu Feb 09, 2006 1:04 pm
Forum: The Code Dump
Topic: handling control events (incl. mouse) in parent window
Replies: 5
Views: 18594

Hi finn, I actually refered to the manual a couple of times, looking up the Propagation-functions but I seem to have totally missed the information at wxEvent::m_propagationLevel!? :oops: Now I feel much better about the this hack. Thank's for pointing it out, and may the code be with you! cu, Edwin
by Edwin
Wed Feb 08, 2006 8:30 pm
Forum: The Code Dump
Topic: handling control events (incl. mouse) in parent window
Replies: 5
Views: 18594

Hello finn, Thanks for the clear explanation of your solution. I was playing around with the same kind of problem. When using a wxGLCanvas I wanted the key and mouse events also to propagate to a parent controller. My solution was to capture the events in my OpenGLPanel-class (derived from wxGLCanva...
by Edwin
Sat Jan 28, 2006 10:59 am
Forum: Platform Related Issues
Topic: wxGLCanvas Key Events
Replies: 1
Views: 991

I was also playing with wxGLCanvas, and had similar problems. You should use the style wxWANTS_CHARS in your wxFrame, so your arrow (and tab) key-events don't get translated to navigation events. But this kills also the navigation function of tab unless you make wxNavigationKeyEvent's. Look in the m...