Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resize Class
Message
De
24/06/1998 16:33:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00111223
Message ID:
00111368
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform