Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Image size on form
Message
De
17/08/1999 23:30:06
 
 
À
17/08/1999 18:58:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00254744
Message ID:
00254791
Vues:
23
Hi Ken,

>I am putting and image (jpg) on a form.
>I don't know the size of the image so I choose
>isometric. How can I read the image width and height
>so I can resize the form to make it look best?

If you do this:

wait window str(thisform.image1.width)+str(thisform.image1.height)
thisform.image1.visible=.f.
thisform.image1.stretch=0
wait window str(thisform.image1.width)+str(thisform.image1.height)

You'll see that youre previously isomtered imsage is now autosized and you can read the width and height values from the image object. You might want to save the old values so if the new ones are unacceptable (way to big) you could revert.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform