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, but the application still closes when closing that window.

Are there any samples of using child windows? Or can you tell me how to do
it?

I think you mean an owned window, and not a child window?  If so, then
there are examples in the demos (for example see the help menu option
in the NotifyIcon.pl demo).

You want the -onTerminate handler of the owned window to return 1 (by
default it returns -1, which exits the Dialog() processing).

If I'm mis-understanding you, then perhaps you could post a (small and
complete) example so that we can better understand what you are trying
to do.

Regards,
Rob.

Reply via email to