>Is there a way to disable the Maximize button on a window? I've been using
>-maxwidth and -maxheight in the window creation in order to prevent users
>from resizing my windows (I don't really want to deal with resizing &
>repositioning quite yet...) but since the maximize button is active, the
>window does this ugly (imho) snap to the top left corner when its clicked.

You know, I was hoping for the same thing, with code like this:

   $window = new Win32::GUI::Window( -name   => '_Window',
                                     -text   => $SETTINGS->{app}->{name},
                                     -left   => ($screen_width - 600)/2,
                                     -top    => ($screen_height - 400)/2,
                                     -width  => 480, -height => 400,
                                     -menu   => $menu_bar,
                                     -class  => $hwnd_class,
                                     -icon   => $icon,
                                     -maximizebox => 0
                                   );

Unfortunately, that dims the maximize box so that it doesn't work, but still allows people to resize the window by the grab-an-edge-and-pull routine. I haven't figured out how to disable that. It's probably simple.


Morbus Iff
.sig on other machine.
http://www.disobey.com/
http://www.gamegrene.com/


Reply via email to