Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reduce/Enlarge windows isometrically
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00039056
Message ID:
00039182
Views:
36
>>Sorry, I forgot to mention that I suggest adding the form property of nRatio and setting it in the form' INIT to the original >ThisForm.Height/ThisForm.Width ratio.
>>
>>INIT method:
>>
>>ThisForm.nRatio = ThisForm.Height/ThisForm.Width
>>
>>This eliminates the need to have the other 2 form properties. I suggested this because I finally realized that the ratio would never change regardless of the height or width. Then in the resize method all you need is the ThisForm.nRatio value.
>Mark,
>
>That would work except the other two properties would allow you to determine which aspect had changed the greatest amount and make that the one which the other is based on. So that if the user dragged the corner and changed both height and width the code would use the greaster change to adjust the form size. Using only the ratio this would not be possible.

You are very correct. I lost sight of the original request. I tried to get "too cute."
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform