Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Tk MainWindow

by inelukii (Sexton)
on Aug 19, 2003 at 12:55 UTC ( [id://284870]=note: print w/replies, xml ) Need Help??


in reply to Re: Tk MainWindow
in thread Tk MainWindow

True, overrideredirect will remove the decorations; however, you lose functionality also.

From Wm.pod

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.

One main limitation I have experienced with this is the inability to bind actions. As converter said, your mileage may vary but I don't think overrideredirect is the solution. I have mainly limited my use of the override-redirect to creating splash screens. If someone knows of a way to remove the decorations but still retain full Tk functionality, I would love to hear it.

Inelukii

Replies are listed 'Best First'.
Re: Re: Re: Tk MainWindow
by batkins (Chaplain) on Aug 19, 2003 at 15:38 UTC
    I think this is more of a window manager issue than a Tk issue. From what I understand, overrideredirect simply tells the window manager not to bother with the window. Since the window manager is what's decorating the window in the first place, this accomplishes your goal. However, the window manager is then unable to do other things with the window.
    milkbone - perl/tk instant messaging - it's the only way to fly
Re: Re: Re: Tk MainWindow
by jdtoronto (Prior) on Aug 19, 2003 at 15:19 UTC
    As with both other respondents I have also tried the override redirect method and the functionality problems aside it is a viable way of achieving what you want. It depends purely what level of GUI functionality you need. It is worth a try.

    jdtoronto

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://284870]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2024-04-18 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found