Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl/TK Title Bar

Status
Not open for further replies.

klofisch

Programmer
Nov 5, 2002
2
DE
Hi!

I've got a problem. I want to write a script that displays a startup window with a product logo or something else but I don't know how to create a window that has no title bar. Is there any way to write a window function like that?
Maybe something like arguments on calling

$window = new MainWindow(...)[\b]

Klofisch
 
I don't know Perl/Tk but, for Tcl/Tk, you need to use [wm overridedirect].

Here is a copy of the Tk manual entry for overridedirect:

wm overrideredirect window ?boolean?
If boolean is specified, it must have a proper boolean form and the override-redirect flag for window is set to that value. If boolean is not specified then 1 or 0 is returned to indicate whether or not the override-redirect flag is currently set for window. Setting the override-redirect flag for a window causes it to be ignored by the window manager; among other things, this means that the window will not be reparented from the root window into a decorative frame and the user will not be able to manipulate the window using the normal window manager mechanisms.

HTH

ulis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top