Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Image sizing behavior in webbrowser?
Message
 
To
23/07/2007 10:31:49
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01242738
Message ID:
01242798
Views:
13
Hello Tore,

I am actually using the image control right now but there are some annoyances that I would like to overcome. At this point, a web browser seems to be the answer ... unless someone has better ideas.

Here is what I'm doing and the annoyances with the image control:

I have a form with a "image window". This window is much larger than a thumbnail but still relatively small compared to the size of the scanned image. I have the image control set to shrink the image proportionally to give the user a "preview" of the larger image. Annoyance 1 - Image control does a horrible job scaling down an image. Displaying the same image at the same size in IE looks 100% better.

Next, I added buttons to allow the user to enlarge the image so they can read pieces of text. At this point, the "preview window" does not change its size, just the image. So the user is only able to view a portion of the large image at a time. Annoyance 2 - I had to add the ability for the user to slide the image around with the mouse so they could view different parts of the image. This is proving a little clunky and cumbersome. However, this would be much easier with scrollbars like IE provides for images larger than the screen.

If you've got a better idea on how to accomplish this with the image control (or any other control for that matter), I'd be interested in hearing it!

Rodd

>>I've added a webbrowser control to my form (thanks to Doug H. for refreshing my memory on NODEFAULT in Refresh). I want to use the webcontrol to display an image. What I'm really after is the image scaling functionality of IE. In other words, if you open an image in IE and the image is too big, IE scales the image to fit the screen. It will then give you the enlarge cursor if you want to go fullsize with the image.
>>
>>With the webbrowser dropped on my form, all I get is the horizontal scrollbars. I can't seem to find a way to make it shrink/enlarge the image to fit.
>>
>>Is it possible to do this with the webbrowser control?
>>
>>Thanks for your help!
>>
>>Rodd
>
>Why don't you use an image control instead?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform