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

Hi,

Perhaps I can lead you in the right direction.

You can call the method geometry on all other toplevels. Than you can type to determine the coordinates from these by taking the lowest X value and the lowest Y value, and add the X size=(highest X - lowest X) and the same for the Y size.

Than you can call the method geometry on the newly created Toplevel with these new parameters.

In most window managers, the newly created Toplevel will than be above the older onces.

I hope that is what you wanted

---------------------------
Dr. Mark Ceulemans
Senior Consultant
IT Masters, Belgium

  • Comment on Re: stay-on-top property for Toplevel for Perl-Tk GUI

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:16 UTC
    No, I was trying to display a small button that will not be obscured by other applications, something of kind "stay-on-top"

    Courage, the Cowardly Dog