Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resize Class
Message
From
24/06/1998 16:33:56
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00111223
Message ID:
00111368
Views:
16
Good tips! Thanks, Ed

>Joel,
> The Resize event is not automatically triggered when a form is created.
> You will have to call the method in your code.
> To resize the form to something that will fit in the new screen resolution,
> you can read the screen resolution from _SCREEN (Height/Width).
> If loForm is the form to be resized,
> Add this to the code that creates the form:
> WITH loForm
> .Height = _SCREEN.Height * 0.955
> .Width = _SCREEN.Width * 0.955
> .Resize()
> ENDWITH
> Note: the 0.955 multiplier is optional, I didn't want the entire screen taken up by the form.
>HTH,
> Ned
>
>>Vladimir,
>>I have downloaded your resize.vcx, and followed the instructions in the readme.txt, but I can't seem to get it to work.
>>
>>I placed a resizeable object (from the resize.vcx) on my form, and inserted the code in the form's resize event, as instructed.
>>
>>That's all I did. Then I saved the form, changed the resolution of my monitor, and then re-statred the form, expecting it to sense the new resolution, but it does not change.
>>
>>What am I overlooking?
>>Thanks for your help.
>>Joel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform