PeterPeiGuo has asked for the wisdom of the Perl Monks concerning the following question:
Noticed something interesting, and Tk::Dialog is not entirely modal. This is true at least with this combination: windows 7 + strawberry perl 5.12.1 + Tk 804.029
use Tk; use Tk::Dialog; $mw = MainWindow->new(); $mw->Button(-text => "Show", -command => sub {$mw->DialogBox()->Show() +;})->pack; MainLoop();
You click the show button, and a dialog box shows up.
It does initially give you the feeling of a modal dialog. For example, wirth the dialog open, you cannot resize the main window.
However, with the dialog still open, 1) if you click the spacer right under the X button, and drag, the main window actually moves; 2) You can actually click on the X button on the main window, and close the application.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk:Dialog is not entirely modal
by kcott (Archbishop) on Nov 08, 2010 at 05:49 UTC | |
by PeterPeiGuo (Hermit) on Nov 08, 2010 at 14:26 UTC | |
by kcott (Archbishop) on Nov 08, 2010 at 14:49 UTC | |
by PeterPeiGuo (Hermit) on Nov 08, 2010 at 14:59 UTC | |
|
Re: Tk:Dialog is not entirely modal
by aquarium (Curate) on Nov 08, 2010 at 05:33 UTC | |
by Anonymous Monk on Nov 08, 2010 at 14:46 UTC | |
|
Re: Tk:Dialog is not entirely modal
by ww (Archbishop) on Nov 08, 2010 at 05:23 UTC | |
|
Re: Tk:Dialog is not entirely modal
by Anonymous Monk on Nov 08, 2010 at 16:05 UTC |