http://www.perlmonks.org?node_id=205364


in reply to stay-on-top property for Toplevel for Perl-Tk GUI

I am assuming you are looking to make a global grab ... somthing that will not let the user switch application's, correct ? Well, i never suggest this, as if your program hangs you may well roger the user ... After the warning, take a look at the $widget->grabGlobal() method. I do suggest the grab() method, as it is local. Adding this with the general focus methods/properties should do what you want.
from the frivolous to the serious

Replies are listed 'Best First'.
Re: Re: stay-on-top property for Toplevel for Perl-Tk GUI
by Courage (Parson) on Oct 15, 2002 at 14:15 UTC
    No, I did not intended to have input only for my app, I was searching for a way to display a small button that will not be obscured by other applications, so a user will be able to see my button (and press it at any time) while being in another application. Something like floating button-bar.

    Courage, the Cowardly Dog

        Thanks a lot!

        I already received a very similar answer, and that code working in my app.
        Your addition is very helpful as well.

        Courage, the Cowardly Dog