Home » U++ Library support » TopWindow&PopUp, TrayIcon » [Solved][TrayIcon for Linux] Help needed to merge two eventloops
[Solved][TrayIcon for Linux] Help needed to merge two eventloops [message #5595] |
Thu, 05 October 2006 07:51 |
3togo
Messages: 83 Registered: May 2006 Location: Hong Kong SAR
|
Member |
|
|
// codes extracted from src/main.cpp
GUI_APP_MAIN
{
TrayIcon traywindow;
App app;
traywindow.Run();
//Ctrl::EventLoop();
}
If traywindow.Run() is used, all the events from traywindow could be processed but all the events from app was ignored.
If Ctrl::EventLoop() is used, app events is now be processed but not traywindow.
I have attached the source codes and below is the procedures to "make"
the codes:
tar jxvf trayicon20061005.tar.bz2
cd trayicon
make
./traytest
[Updated on: Fri, 06 October 2006 23:37] Report message to a moderator
|
|
|
|
Re: [Solved][TrayIcon for Linux] Help needed to merge two eventloops [message #5616 is a reply to message #5614] |
Thu, 05 October 2006 23:11 |
3togo
Messages: 83 Registered: May 2006 Location: Hong Kong SAR
|
Member |
|
|
If I open a window using OpenMain /Open, it will end up create a new window. I need a way to link my newly created "Tray Window" to windows created by TopWindow.
I am now still puzzling on how to cast my own version of "Tray Window" to become a real TopWindow. I need something like
GtkEventBox
GtkEventBox — A widget used to catch events for widgets which do not have their own window
luzr wrote on Fri, 06 October 2006 04:43 | Window must be open to process messages.
|
[Updated on: Fri, 06 October 2006 23:36] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Fri Apr 26 00:31:47 CEST 2024
Total time taken to generate the page: 0.06232 seconds
|