Re: [perl-win32-gui] Setting a window to no resize

2000-10-20 Thread Jonathan Southwick

Paul,

Add the following option to your window constructor:

 -style  = WS_SYSMENU | WS_NORESIZE,


and that should do what you want.

Jonathan


- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 20, 2000 11:31 AM
Subject: [perl-win32-gui] Setting a window to "no resize"


 Hi All
 
 First a quick intro since this is my 1st post :
 
 I'm Paul, a Senior Systems Engineer for a large UK telecoms company. I've been
 playing with perl on un*x for a couple of years now and love it to bits. Having
 recently taken on some NT based projects I was very happy to see a strong perl
 showing and have installed ActiveState 618 here. I just got Win32::Gui a couple
 of days ago and have been hacking ever since :-)
 
 OK now that I know every one here's my question.
 
 I'm using the Gui to write a frontend to an existing perl program. Since the gui
 will be very small, I don't want to go to the trouble of resizing all my
 elements if the window is resized, I'd much rather make the window no resize. I
 have a solution in the window constructor :
 
 ...
 -maxsize = [n,n]
 -minsize  = [n,n]
 ...
 
 I was wondering if there was simply a no resize option which can be set ?
 
 TIA
 
 PaulB
 
 
 
 ***
 Important. This E-mail is intended for the above named person and may be
 confidential and/or legally privileged. If this has come to you in error you
 must take no action based on it, nor must you copy or show it to anyone; please
 inform the sender immediately.
 ***
 




Re: [perl-win32-gui] Setting a window to no resize

2000-10-20 Thread Jonathan Southwick

Paul,

If you want to be able to minimize the window but not maximize the window then you can 
use:

-style= WS_SIZEBOX | WS_SYSMENU | WS_MINIMIZEBOX,


Jonathan


- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 20, 2000 11:31 AM
Subject: [perl-win32-gui] Setting a window to "no resize"


 Hi All
 
 First a quick intro since this is my 1st post :
 
 I'm Paul, a Senior Systems Engineer for a large UK telecoms company. I've been
 playing with perl on un*x for a couple of years now and love it to bits. Having
 recently taken on some NT based projects I was very happy to see a strong perl
 showing and have installed ActiveState 618 here. I just got Win32::Gui a couple
 of days ago and have been hacking ever since :-)
 
 OK now that I know every one here's my question.
 
 I'm using the Gui to write a frontend to an existing perl program. Since the gui
 will be very small, I don't want to go to the trouble of resizing all my
 elements if the window is resized, I'd much rather make the window no resize. I
 have a solution in the window constructor :
 
 ...
 -maxsize = [n,n]
 -minsize  = [n,n]
 ...
 
 I was wondering if there was simply a no resize option which can be set ?
 
 TIA
 
 PaulB
 
 
 
 ***
 Important. This E-mail is intended for the above named person and may be
 confidential and/or legally privileged. If this has come to you in error you
 must take no action based on it, nor must you copy or show it to anyone; please
 inform the sender immediately.
 ***
 




Re: [perl-win32-gui] Setting a window to no resize

2000-10-20 Thread Jonathan Southwick

Paul,

my bad!!!

-style= WS_MINIMIZEBOX | WS_SYSMENU | WS_NORESIZE,

is what you want ... the other will still resize ... but this one will allow you to 
minimize and not resize and gives
you the ability to Close it as well.  I hope this helps.

Jonathan

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 20, 2000 11:31 AM
Subject: [perl-win32-gui] Setting a window to "no resize"


 Hi All

 First a quick intro since this is my 1st post :

 I'm Paul, a Senior Systems Engineer for a large UK telecoms company. I've been
 playing with perl on un*x for a couple of years now and love it to bits. Having
 recently taken on some NT based projects I was very happy to see a strong perl
 showing and have installed ActiveState 618 here. I just got Win32::Gui a couple
 of days ago and have been hacking ever since :-)

 OK now that I know every one here's my question.

 I'm using the Gui to write a frontend to an existing perl program. Since the gui
 will be very small, I don't want to go to the trouble of resizing all my
 elements if the window is resized, I'd much rather make the window no resize. I
 have a solution in the window constructor :

 ...
 -maxsize = [n,n]
 -minsize  = [n,n]
 ...

 I was wondering if there was simply a no resize option which can be set ?

 TIA

 PaulB



 ***
 Important. This E-mail is intended for the above named person and may be
 confidential and/or legally privileged. If this has come to you in error you
 must take no action based on it, nor must you copy or show it to anyone; please
 inform the sender immediately.
 ***