For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > November 2004 > how to disable window closing?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to disable window closing?
Jie Huang

2004-11-12, 3:56 pm

I am using the "MainWindow" function to create a window as a status
bar. However, i don't want the user to be able to click the X at the
top left corner of the status bar window to close it before the
program is finished and closes the window automatically.

can someone tell me how that could be done?

thanks.

Jie
Marc Dashevsky

2004-11-12, 3:56 pm

In article <3999fb41.0411120819.709f281@posting.google.com>, jiehuang001@hotmail.com
says...
> I am using the "MainWindow" function to create a window as a status
> bar. However, i don't want the user to be able to click the X at the
> top left corner of the status bar window to close it before the
> program is finished and closes the window automatically.
>
> can someone tell me how that could be done?


$ww->protocol(WM_DELETE_WINDOW => sub{});

--
Go to http://MarcDashevsky.com to send me e-mail.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com