Setting the minimum size of a window 
Author Message
 Setting the minimum size of a window

Hello all,

I am try to create a window that cannot be sized smaller than a certain size. I
have seen other programs that do this. I can use the resize property to resize
the window to the smallest size after it is resized, but I've seen programs
that will not let the size bars go any smaller than a certain size. I have
looked through the windows API trying to find a message or setting that can be
sent to the window to set its smallest size but I can't find anything. Can
anyone help?

Thanks in advance

Luis Duran



Mon, 31 Aug 1998 03:00:00 GMT  
 Setting the minimum size of a window
I don't know if this will be of any
help, but I found a VBX that restricts
the size a user can rsize the window to.
It is at http://www.apexsc.com/vb/ftp1.html
and is called Sizer.vbx


Mon, 31 Aug 1998 03:00:00 GMT  
 Setting the minimum size of a window

Quote:

>Hello all,
>I am try to create a window that cannot be sized smaller than a certain size. I
>have seen other programs that do this. I can use the resize property to resize
>the window to the smallest size after it is resized, but I've seen programs
>that will not let the size bars go any smaller than a certain size. I have
>looked through the windows API trying to find a message or setting that can be
>sent to the window to set its smallest size but I can't find anything. Can
>anyone help?
>Thanks in advance
>Luis Duran


you do this in the form_resize event. just don't let it get smaller
than you want it or change the border to fixed



Wed, 02 Sep 1998 03:00:00 GMT  
 Setting the minimum size of a window

writes

Quote:
>I don't know if this will be of any
>help, but I found a VBX that restricts
>the size a user can rsize the window to.
>It is at http://www.apexsc.com/vb/ftp1.html
>and is called Sizer.vbx

Yes; hope this does the job for you.  You can also get the same effect
by using the message blaster and memcopy API routines to process the
WM_GETMINMAXINFO message, but our "Sizer VBX" is easiest.  We're always
interested in how much use it gets ... (see our new email address).

BTW, it's freeware, but donations are always welcome :->

--
Ken Tough                            Objective Technologies Limited

                                     United Kingdom    TR4 9YG



Mon, 07 Sep 1998 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Help using MinMaxInfo to set minimum window size

2. Set minimum size limit for usercontrol

3. Setting Forms Minimum Size Properties

4. Setting the minimum size of a form?

5. HOW TO: Set minimum size for a form

6. Minimum Window size

7. window minimum size

8. Having minimum size for window...

9. Minimum window size

10. Minimum Window Size

11. Minimum window size

12. Minimum Window Size

 

 
Powered by phpBB® Forum Software