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!

turning off those close, minimize, maximize buttons

Status
Not open for further replies.

jpasquini

Programmer
Apr 20, 2006
44
US
Hi Group,

This has been quoted by several Perlots? as "impossible", at least without having to go into OS system level calls. Has anyone out there heard of an option flag or module to turn off(hide) the _ [[ X in the upper right hand corner of a TK label or window?.

Appears to be nothing in the books or on the web I can find.

jpasquini

 
I'm not sure how to do it, but a place to look might be in the Tk::Wm or Tk::MWM modules, since they seem to work with your OS's window manager and could possibly tell it to change the buttons that appear.

On one computer I programmed in Perl/Tk on, DialogBoxes would only have the X button on them, but the other two weren't there at all. On other computers I've tried, the same code would produce a window with all three buttons on them.

I know of one thing you can do about the maximize button:
Code:
$window->resizable (0, 0);

If the window is not resizable, then the maximize button is disabled and can't be clicked--but it's still there, unfortunately.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top