I`m doing Tcl/Tk under Win32 and want to display only the
title in the titlebar of a toplevel-widget.
That means I want to get rid of the three buttons in the
upper right corner ( iconify-, maximize- and close-button).
but I know how to change the title of a toplevel.
I just want to get rid of the three buttons
(iconify, maximize, close) on a win32-platform.
Is there any way?
I can't think of any way to do it. It's not really Tcl's fault. Those "window decorations" are added by the window manager (part of the operating system for Windows, a separate application like mwm on Unix), and are completely under its control. Microsoft has decided that it is a Good Idea not to turn off those three icons, and so we don't have an easy way for you to do so in Tcl.
About the only way to "turn off" those three icons would be to tell the window manager you didn't want it to manage that toplevel window. The command to do so (assuming the window's name is .d) is:
[tt]wm overrideredirect .d 1[/tt]
But when you do this, you don't get any titlebar. You don't even get a border or resize handles, so there's no easy way to even allow the user to move the window around. "Overrideredirect" windows are typically used only for start-up splash pages and other special-purpose windows designed for limited interaction with the user. - Ken Jones, President
Avia Training and Consulting
I thought there is no way, but now I know there is none.
Maybe I will find some time to migrate to UNIX/LINUX and
will have a much better time. (hope so!)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.