From: Frazier, J. J. <Joe...@Pe...> - 2001-05-31 19:07:17
|
> -----Original Message----- > From: Morbus Iff [mailto:mo...@di...] > Sent: Thursday, May 31, 2001 14:40 > To: per...@li...; > 'per...@li...' > Subject: Re: [perl-win32-gui-users] Window Size Controls & Miscellany > ?'s >=20 >=20 > >Is there a way to disable the Maximize button on a window?=20 > I've been using > >-maxwidth and -maxheight in the window creation in order to=20 > prevent users > >from resizing my windows (I don't really want to deal with=20 > resizing & > >repositioning quite yet...) but since the maximize button=20 > is active, the > >window does this ugly (imho) snap to the top left corner=20 > when its clicked. >=20 > You know, I was hoping for the same thing, with code like this: >=20 > $window =3D new Win32::GUI::Window( -name =3D> '_Window', > -text =3D>=20 > $SETTINGS->{app}->{name}, > -left =3D>=20 > ($screen_width - 600)/2, > -top =3D>=20 > ($screen_height - 400)/2, > -width =3D> 480, -height =3D> = 400, > -menu =3D> $menu_bar, > -class =3D> $hwnd_class, > -icon =3D> $icon, > -maximizebox =3D> 0 #######add something like : =09 -maxsize =3D> [480,400], -minsize =3D> [480,400], ####### this puts a min/max size to the window meaning it cant be resized with the handle bars.... > ); >=20 > Unfortunately, that dims the maximize box so that it doesn't=20 > work, but=20 > still allows people to resize the window by the grab-an-edge-and-pull=20 > routine. I haven't figured out how to disable that. It's=20 > probably simple. >=20 >=20 > Morbus Iff > .sig on other machine. > http://www.disobey.com/ > http://www.gamegrene.com/ >=20 >=20 > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users >=20 |