Correction: Resize form - resize controls 
Author Message
 Correction: Resize form - resize controls

Correction on previously posted question:

I have an MDI-application in VB6 and I'm trying to change
the size of the controls when resizing (not minimizing)
the window. I've tried to call Refresh in form_resize but
without result.

Any help with this is highly appreciated...

Malin



Mon, 07 Mar 2005 22:09:40 GMT  
 Correction: Resize form - resize controls
When resizing the child form of the MDI form or resizing the the MDI form
(if so what controls are you trying to resize)....Post your resize code
also..

--
Veign
www.veign.com
NEW ActiveX Control - Jeweled Style Buttons
www.veign.com/download_activex.html#jwldbutn
Code Samples & Sample Projects
http://www.veign.com/information/application/info_app.html
Submit Your Best Code (you keep the rights)
http://www.veign.com/information/application/code_submit.html
---------

Quote:
> Correction on previously posted question:

> I have an MDI-application in VB6 and I'm trying to change
> the size of the controls when resizing (not minimizing)
> the window. I've tried to call Refresh in form_resize but
> without result.

> Any help with this is highly appreciated...

> Malin



Mon, 07 Mar 2005 23:25:42 GMT  
 Correction: Resize form - resize controls
You aren't by any chance assuming that the resizing is automatic? If so, I'm
sorry, but you have to roll your own to resize the controls (and fonts)
relative to your new form size. The very easiest way is to try one of the
many resize ActiveX controls around, some free and some not. But if you want
to do it all yourself, my method is to set up an public array of a UDT for
control dimensions which I fill at form load by iterating through the forms
controls, also saving form dimensions, and then in the resize event change
the size of the controls relative to the change in size of the form. No
doubt someone has a more erudite way. Note that you need to use typeof to
check the control type as some don't have all the dimension properties (or
skip errors).

--
Regards - John Rischmiller.


Quote:
> Correction on previously posted question:

> I have an MDI-application in VB6 and I'm trying to change
> the size of the controls when resizing (not minimizing)
> the window. I've tried to call Refresh in form_resize but
> without result.

> Any help with this is highly appreciated...

> Malin



Tue, 08 Mar 2005 01:58:53 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. resizing a form when a control resizes during execution

2. Resize form - resize controls

3. Resizing a control when the Form is resized

4. resizing a form when a control resizes during execution

5. Resizing all controls at form resize

6. Dynamically move/resize controls on resized form

7. Resize, resize, resize, ...

8. Resizing Everything when Form Resizes

9. Resizing an object when a form is resized.....

10. Resizing components after form resize

11. resizing DataGrid after resizing Form

12. Resizing objects when form gets resized

 

 
Powered by phpBB® Forum Software