Home > Archive > PerlTk > April 2004 > Focus problem on Solaris
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 |
Focus problem on Solaris
|
|
| Sumit Nagpal 2004-03-31, 8:46 am |
| Hi,
When I open a dialog box from the main window of my perl/tk application
and then I click on the main window, the dialog box goes behind the
main window.
This happens on solaris when the "Allow primary Windows on top" property
is set.
Can I make the dialog box stay on top witout changing this property of
window manager ???
I have tried to 'grab' but it didnt work.'global grab' works but is not
preferable.
Please suggest.
Thanks
Sumit Nagpal
| |
| Slaven Rezic 2004-04-02, 2:33 am |
| Sumit Nagpal <sumit@noida.atrenta.com> writes:
> Hi,
>
> When I open a dialog box from the main window of my perl/tk
> application and then I click on the main window, the dialog box goes
> behind the main window.
> This happens on solaris when the "Allow primary Windows on top"
> property is set.
> Can I make the dialog box stay on top witout changing this property of
> window manager ???
>
> I have tried to 'grab' but it didnt work.'global grab' works but is
> not preferable.
>
You can check for the <Visibility> event and do a raise of the dialog
window. But mind that this can lead to race conditions if two such
dialogs fight over the topmost position.
Regards,
Slaven
--
Slaven Rezic - slaven@rezic.de
tknotes - A knotes clone, written in Perl/Tk.
http://ptktools.sourceforge.net/#tknotes
|
|
|
|
|