>>>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
>
>Thank you for your answer!
>To use your suggestion, I need to determine the last value of width or height. (To decide
>which one was changed, because to set the unchanged other one. Or if both of them was changed,
>select the more changed one.) But how can determine this value? The form resize event is called
>continously. If I add two properties to the form (e.g. lastheight and lastwidth),
>when should I set it to new value?
>
>Thanks in advice:
>
>BB
I would set the initial values in the INIT method of the form:
ThisForm.LastHeight = ThisForm.Height
ThisForm.LastWidth = ThisForm.Width
You can then call your resizing function in the Resize method of the form.
Mark McCasland
Midlothian, TX USA