Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resizing Forms
Message
From
01/08/2000 21:23:49
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00399196
Message ID:
00399676
Views:
20
Hi Charlie,

Thanks again for the insight... When you say the control registers itself with the resize class do you mean you do something like:

ThisForm.ResizeIt.Register(This, This.Left, This.Top, ...)

So each time ResizeIt.Register is called it adds to the array the info on the control??

I was working on it this evening and if I save the right border and bottom border (distance from bottom of control to bottom of the form and use this info in the form.resize I can resize the control (grid etc) to keep the same distance from the edge of the form... Looks good when you resize the form...

My thoughts on controls like command buttons etc is to keep the same distance from the anchor corner ie. upper left or lower right...

It is kinda fun...

John

>Hi John:
>
>In the INIT method of the control baseclass, the control registers itself with the resize class. The resize class stores the controls inital placement settings (top, left etc.) in an array. When the resize event fires, it loops through the array resizing each control with respect to the change in form dimensions. This is basically how it works. I take it one step further by sending parms to the resize class which determine what placement settings get resized and if it is resized portionately to the form or the same amount as the form. This way you can customize how each control resizes or just go with default in parent class.
>
>Developing this thing was actually kind of fun.
>
>Charlie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform