From: Geoffrey S. <geo...@gm...> - 2007-06-20 12:39:54
|
I'm not exactly clear on how you go about adding a tray icon with a Win32::Daemon since, if I understand correctly, the daemon runs in the background before a user is even logged in (which I'd assume is also the reason the daemon can't call Win32::GUI::Dialog). Is it possible to call Win32::GUI::DoEvents() in your daemon when it's needed and stop the loop that's calling it when your daemon is going back to acting like a daemon? Or would it make sense (it does to me, but then I'm a UNIX person by background) to have a completely separate process that handles user interaction with the daemon, which itself just runs in the background with no UI of its own? Geoffrey On 6/20/07, a98...@gm... <a98...@gm...> wrote: > Hi, > > I've written a small windows-application with Win32::Daemon and added wit= h Win32::GUI a trayicon. > It works fine and I can see the trayicon. > > But now I want to add a popupmenu to the trayicon which doesn't appear. > Only if I call "Win32::GUI::Dialog();" the dialogboxes are shown, but the= service can't run with Dialog(). > > What can I do? > > thx > j. > > -- > Psssst! Schon vom neuen GMX MultiMessenger geh=F6rt? > Der kanns mit allen: http://www.gmx.net/de/go/multimessenger > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > http://perl-win32-gui.sourceforge.net/ > --=20 Geoffrey Spear http://www.geoffreyspear.com/ |