opensubscriber
   Find in this group all groups
 
Unknown more information…

a : activeperl@listserv.ActiveState.com 28 November 2005 • 9:30AM -0500

RE: Tk window
by Lynn. Rickards

REPLY TO AUTHOR
 
REPLY TO GROUP





> Petr Vileta
> Sent: Saturday, November 26, 2005 8:01 PM
> To: ActivePerl
> Subject: Tk window
>
>
> I want to create new window (from MainWindow) but without any border or
> move/close buttons and titlebar and want that this new window
> will be on the
> top of all other windows.
> I was trying SplashScreen but this not comply with my purpose.
> And, of course, for Linux and Windows too :-)
>
> Any idea?
>
> Petr Vileta, Czech republic

You're using a Toplevel widget, so try

use Tk::StayOnTop;
...
$toplevel->overrideredirect(1);  # removes all decoration
# overrideredirect(0); ensures decoration
...
$toplevel->stayOnTop;

Stayontop uses different methods on windoze and *nix but works on both.

You can add whatever content you need to the window by your preferred means,
and probably want to make stayontop the last call, to avoid seeing it
built..

HTH - Lynn.

_______________________________________________
ActivePerl mailing list
ActivePerl@list...
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.