From: Sean H. <jal...@ho...> - 2001-01-22 20:22:20
|
>How does one prevent a user from resizing a window? The only >thing I could think of is testing the window size when they >attempt to resize and then stopit from being resized. Is >there an easier or more efficient way of doing it? Add this option: -resizable => 0 You can also call it '-sizable'. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com |
From: Sean H. <jal...@ho...> - 2001-01-22 21:18:29
|
The code you sent works for me. I don't know what's going on. >$MainWin = new Win32::GUI::Window( > -name => "MainWin", > -text => "Main Window", > -height => 400, > -width => 450, > -left => 200, > -top => 100, > -font => $Font, > -menu => $Menu, > -resizable => 0, > >); _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com |
From: Erick J. B. <er...@e-...> - 2001-01-22 20:46:26
|
I added the resizable option, however it still does not work: $MainWin = new Win32::GUI::Window( -name => "MainWin", -text => "Main Window", -height => 400, -width => 450, -left => 200, -top => 100, -font => $Font, -menu => $Menu, -resizable => 0, ); |
From: Jonathan S. <jso...@al...> - 2001-01-22 22:09:25
|
Maybe, just maybe, this will work. Add the following to your window declaration: -minsize=> [$minwidth,$minheight], -maxsize=> [$maxwidth,$maxheight], I know the -minsize works because I use it in one of my programs but never tried the maxsize. ----- Original Message ----- From: "Erick J. Bourgeois" <er...@e-...> To: <per...@li...> Sent: Monday, January 22, 2001 3:44 PM Subject: Re: [perl-win32-gui-users] Resizing > I added the resizable option, however it still does not > work: > > $MainWin = new Win32::GUI::Window( > -name => "MainWin", > -text => "Main Window", > -height => 400, > -width => 450, > -left => 200, > -top => 100, > -font => $Font, > -menu => $Menu, > -resizable => 0, > > ); > > > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > |
From: Erick J. B. <er...@e-...> - 2001-01-22 22:19:58
|
> Maybe, just maybe, this will work. Add the following to your window > declaration: > > -minsize=> [$minwidth,$minheight], > -maxsize=> [$maxwidth,$maxheight], > I'm afraid the -minsize option does not work. $MainWin = new Win32::GUI::Window( -name => "MainWin", -text => "JEB FTP Client", -height => 400, -width => 450, -left => 200, -top => 100, -font => $Font, -menu => $Menu, -minsize => [450, 400], -maxsize => [450, 400] ); |
From: Aldo C. <da...@pe...> - 2001-01-23 08:54:56
|
Erick J. Bourgeois wrote: > I'm afraid the -minsize option does not work. Erick, which version of Win32::GUI do you have installed? try this command: perl -MWin32::GUI -e "print Win32::GUI::Version;" -resizable and -(min|max)size were added (IIRC -- If I Remember Correctly) around version 0.0.490. cheers, Aldo __END__ $_=q,just perl,,s, , another ,,s,$, hacker,,print; |
From: Erick J. B. <er...@e-...> - 2001-01-23 13:35:19
|
Aldo, I thought I had the version just before 0.0.558, however when I type: > perl -MWin32::GUI -e "print Win32::GUI::Version;" it tells me it is beta. erick |
From: Aldo C. <da...@pe...> - 2001-01-23 14:02:44
|
Erick J. Bourgeois wrote: > Aldo, I thought I had the version just before 0.0.558, > however when I type: > >> perl -MWin32::GUI -e "print Win32::GUI::Version;" > > it tells me it is beta. too old. please upgrade NOW :-) version 0.0.502, which is available as PPM package, has all the features that you're missing. (BTW, if you have trouble downloading files with PPM, I have also packaged the PPM distribution as ZIP files on SourceForge). cheers, Aldo __END__ $_=q,just perl,,s, , another ,,s,$, hacker,,print; |
From: Erick J. B. <er...@e-...> - 2001-01-23 14:25:23
|
I received this message after I installed version 0.0.502 Win32::GUI object version 0.0.502 does not match $Win32::GUI::VERSION Beta at D: /Perl/lib/DynaLoader.pm line 219. Compilation failed in require at ftp.pl line 4. BEGIN failed--compilation aborted at ftp.pl line 4. How do I change the Dynaloader.pm? erick |
From: Aldo C. <da...@pe...> - 2001-01-23 17:09:18
|
Erick J. Bourgeois wrote: > I received this message after I installed version 0.0.502 > > Win32::GUI object version 0.0.502 does not match > $Win32::GUI::VERSION Beta at D: > /Perl/lib/DynaLoader.pm line 219. > Compilation failed in require at ftp.pl line 4. > BEGIN failed--compilation aborted at ftp.pl line 4. > > How do I change the Dynaloader.pm? the problem is not the DynaLoader, is GUI.pm that was not updated. check that you don't have an older version somewhere else in your @INC. cheers, Aldo __END__ $_=q,just perl,,s, , another ,,s,$, hacker,,print; |
From: christopher s. <chr...@ya...> - 2001-01-23 02:54:03
|
Works perfect for me too chris www.perl-resume.com ----- Original Message ----- From: Erick J. Bourgeois <er...@e-...> To: <per...@li...> Sent: Tuesday, January 23, 2001 2:14 AM Subject: Re: [perl-win32-gui-users] Resizing > I added the resizable option, however it still does not > work: > > $MainWin = new Win32::GUI::Window( > -name => "MainWin", > -text => "Main Window", > -height => 400, > -width => 450, > -left => 200, > -top => 100, > -font => $Font, > -menu => $Menu, > -resizable => 0, > > ); > > > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users |