Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reduce/Enlarge windows isometrically
Message
 
 
To
09/07/1997 04:59:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00039056
Message ID:
00039066
Views:
25
>Can someone tell me, how I can ensure, that a window could be reduce
>or enlarge only isometrically? (I mean the height and width ratio stays the same.) Is it possible or not?
>
>Thanks in advance.
>
>BB

Yes it is possible. Each form as a Height and Width property. You can determine the ration of height/width, change the height or the width then calculate the other using the ratio.

nRatio=ThisForm.Width/ThisForm.Height
ThisForm.Width=ThisForm.Width+50 && or shrink it by subtracting
ThisForm.Height=ThisForm.Width/nRatio

You could also set up this code in a separate UDF and call it from with the form to resize it.

HTH
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform