Re: [perl-win32-gui-users] creating a child window

2007-06-20 Thread Octavian Rasnita
Thank you! That was it. I didn't put a SecondWin_Terminate subroutine, because I thought if I don't use it, it would be just like using it and returning 0 but if the default is -1, then I need to use it explicitly. Thanks. Octavian - Original Message - From: "Robert May" <[EMAIL PR

Re: [perl-win32-gui-users] creating a child window

2007-06-20 Thread Robert May
On 20/06/07, Octavian Rasnita <[EMAIL PROTECTED]> wrote: I have tried to create a child window, but when I close it, the entire application closes. I open it with an option from the menu of the parent window that has a -onClick => \&Config, and I returned 0 or 1 from the sub Config {} subroutine

Re: [perl-win32-gui-users] creating a child window

2007-06-20 Thread Octavian Rasnita
Where could that path be? I tried to see if there is something in d:\usr\eg and d:\usr\site\lib\Win32\GUI ...but I couldn't find examples for creating a child window. I found only some samples in the demos directory but not for creating child windows. Thank you. From: <[EMAIL PROTECTED]> H

Re: [perl-win32-gui-users] Service with Trayicon and Popup-menu

2007-06-20 Thread Jason Plum
Also, there may be no need to go the IPC/separation route if the service itself does not actually do much processing... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of darrik mazey Sent: Wednesday, June 20, 2007 9:43 AM To: perl-win32-gui-users@lists.sour

Re: [perl-win32-gui-users] Service with Trayicon and Popup-menu

2007-06-20 Thread darrik mazey
Typically I separate the processes and write a service and a controller. The tray icon belongs to the controller and communicates its desires to the service as needed. This seems like a clearer approach than DoEvents(), although the IPC may be overkill if the tray icon doesn't expose a lot of f

Re: [perl-win32-gui-users] Service with Trayicon and Popup-menu

2007-06-20 Thread Jason Plum
Geoffrey, j., The problem is not that the program is running as a service, but that the Win32::GUI::Dialog() function *DOES NOT RETURN* until told to do so... Minor problem for a service :). Geoff, you are right about Win32::GUI::DoEvents()! DoEvents() runs a single cycle of messages off the win

Re: [perl-win32-gui-users] Service with Trayicon and Popup-menu

2007-06-20 Thread Geoffrey Spear
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::

Re: [perl-win32-gui-users] creating a child window

2007-06-20 Thread a9876543210
Hi, have a look at the examples in your perl-lib-path. j. Original-Nachricht Datum: Wed, 20 Jun 2007 15:34:03 +0300 Von: "Octavian Rasnita" <[EMAIL PROTECTED]> An: perl-win32-gui-users@lists.sourceforge.net Betreff: [perl-win32-gui-users] creating a child window > Hi, > > I ha

[perl-win32-gui-users] creating a child window

2007-06-20 Thread Octavian Rasnita
Hi, I have tried to create a child window, but when I close it, the entire application closes. I open it with an option from the menu of the parent window that has a -onClick => \&Config, and I returned 0 or 1 from the sub Config {} subroutine, but the application still closes when closing t

[perl-win32-gui-users] Service with Trayicon and Popup-menu

2007-06-20 Thread a9876543210
Hi, I've written a small windows-application with Win32::Daemon and added with 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 servi