Jul 7, 2005 #1 clueo8 Programmer Jun 13, 2005 47 0 0 US If I define a new window, is there a way to disable the maximize/minimize/close buttons on the top right of the window? Code: my $main_win = MainWindow -> new();
If I define a new window, is there a way to disable the maximize/minimize/close buttons on the top right of the window? Code: my $main_win = MainWindow -> new();
Jul 8, 2005 #2 mlibeson Programmer Mar 6, 2002 311 0 0 US perldoc Tk::Wm might help. Also on another topic you asked about disabling the resize of the window. Try: $widget->resizable(0,0); Where the first digit is the width and the second is the height. In the example above, both are disabled. Here the width can be resized, but the height is disabled: $widget->resizable(0,1); Michael Libeson Upvote 0 Downvote
perldoc Tk::Wm might help. Also on another topic you asked about disabling the resize of the window. Try: $widget->resizable(0,0); Where the first digit is the width and the second is the height. In the example above, both are disabled. Here the width can be resized, but the height is disabled: $widget->resizable(0,1); Michael Libeson
Jul 11, 2005 Thread starter #3 clueo8 Programmer Jun 13, 2005 47 0 0 US This has worked with a charm but is there a way to also disable the 'X' close button? I really don't want users pressing it because my exit or done buttons I have created clear variables for later executions... Upvote 0 Downvote
This has worked with a charm but is there a way to also disable the 'X' close button? I really don't want users pressing it because my exit or done buttons I have created clear variables for later executions...
Jul 11, 2005 #4 mlibeson Programmer Mar 6, 2002 311 0 0 US I know there is a way, or atleast there used to be a way to do so. I just do not remember how. You can look into something like: $mw->protocol(WM_DELETE_WINDOW,print STDOUT "ERROR appears but no close.\n"); Michael Libeson Upvote 0 Downvote
I know there is a way, or atleast there used to be a way to do so. I just do not remember how. You can look into something like: $mw->protocol(WM_DELETE_WINDOW,print STDOUT "ERROR appears but no close.\n"); Michael Libeson
Aug 3, 2005 #5 dmazzini Programmer Jan 20, 2004 480 0 0 US $mw->overrideredirect(1); dmazzini GSM System and Telecomm Consultant Upvote 0 Downvote