Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement