> -----Original Message-----
> From: Morbus Iff [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 31, 2001 14:40
> To: [email protected];
> '[email protected]'
> Subject: Re: [perl-win32-gui-users] Window Size Controls & Miscellany
> ?'s
>
>
> >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
#######add something like :
-maxsize
=> [480,400],
-minsize
=> [480,400],
####### this puts a min/max size to the window meaning it cant be
resized with the handle bars....
> );
>
> 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/
>
>
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> [email protected]
> http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
>