MDI window event queue process-order problem

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.
Post Reply
MagickPanda
Experienced Solver
Experienced Solver
Posts: 81
Joined: Wed Oct 19, 2016 1:41 pm

MDI window event queue process-order problem

Post by MagickPanda »

Hello just want to ask a question about wx and MDI: When I post an event with wxPostEvent method to a MDIParent window, should I process from the sub-window of MDI-parent or from the parent-to-sublings.

Ideally it should process like this in parent-subling order
11111.jpg
11111.jpg (12.84 KiB) Viewed 752 times
But when I post the wxEvent with wxPostEvent function, MDI Child got the event before MDI Parent could get it.
AFAIK the event should process from parent to child with event queue message system, but in my case the order was reversed, hence the confusion/question.

Thanks in advance.
User avatar
doublemax
Moderator
Moderator
Posts: 19115
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: MDI window event queue process-order problem

Post by doublemax »

But when I post the wxEvent with wxPostEvent function, MDI Child got the event before MDI Parent could get it.
AFAIK the event should process from parent to child with event queue message system
That shouldn't happen at all. Events only propagate upwards (to parent), never down (to children).

What kind of event are you sending?
Does the MDIParent have an event handler for it?
Use the source, Luke!
Post Reply