Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Image size on form
Message
From
17/08/1999 23:30:06
 
 
To
17/08/1999 18:58:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00254744
Message ID:
00254791
Views:
22
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform