|
|
Home » U++ Library support » TopWindow&PopUp, TrayIcon » [Solved] How to merge two EventLoops together
[Solved] How to merge two EventLoops together [message #5581] |
Wed, 04 October 2006 18:27  |
3togo
Messages: 83 Registered: May 2006 Location: Hong Kong SAR
|
Member |
|
|
Present Scenerio:
1) class TrayWindow which is inherited from TopWindow was created
2) EventProc was implemented for TrayWindow
If I created say 1 TopWindow plus 1 TrayWindow as below
TopWindow w1;
TrayWindow t1;
Then it ended up with two set of EventLoops.
Does anyone knows how to merge two eventloops together.
3togo
[Updated on: Fri, 06 October 2006 23:38] Report message to a moderator
|
|
|
|
|
|
|
Re: How to merge two EventLoops together [message #5615 is a reply to message #5613] |
Thu, 05 October 2006 22:48  |
3togo
Messages: 83 Registered: May 2006 Location: Hong Kong SAR
|
Member |
|
|
Things are getting much much more complicated than I expected.
Because the window holding the "trayicon" is not created by TopWindow, I must find a way to register it so that it could be included in Ctrl::GetTopWindows().
But how?
My EventProc never knows the very existence of my trayicon because it is not created by TopWindow. I don't want to implement another version of Open() because most of the functions and variables within Ctrl are created as "private" instead of "protected".
Also, it seems to me that there is no such thing similar to GtkContainer in U++.
luzr wrote on Fri, 06 October 2006 04:41 | EventProc is more "implementation" thing, you should not override it directly unless you are doing some very platform specific thing (which OTOH you seem to do .
Simply overriding it should be enough. But do not forget to call Ctrl::EventProc for messages you do not handle...
|
[Updated on: Thu, 05 October 2006 22:59] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:35:17 CEST 2025
Total time taken to generate the page: 0.01433 seconds
|
|
|