Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form resize

Status
Not open for further replies.

ipazzo

Programmer
Jan 17, 2002
69
IT
Hello,

how is possible to resize a form when the toplevel window resizes.

My case is this:

i have a top level window
in the top level window i have a button
the click event contains DO FORM newForm
when i resize the toplevel window i will resize the newForm also.

Thanks in advance.




Vito M. from BARI (Italy)
---------------------------------------
When you build a TEAM, try always those that they love to win. If you do not succeed to find them, then try those that they hate to lose. Ross Perot
 
You can loop through all the forms and call their resize method from within the Resize method of the top level form. Assuming that your top level form is called TopForm, put this in the resize:
Code:
for each oForm in _VFP.Forms
   if oForm.Name <> &quot;TopForm&quot;  && Don't want a recursive call
      oForm.Resize()
   endif
endfor



-BP
 
Yes, that works.
Thanks



Vito M. from BARI (Italy)
---------------------------------------
When you build a TEAM, try always those that they love to win. If you do not succeed to find them, then try those that they hate to lose. Ross Perot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top