Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying picture files
Message
 
 
À
28/04/2005 08:40:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01008054
Message ID:
01009274
Vues:
21
David,

>Well that's strange that you cannot distribute the forms 2.0 control. Because of that reason I'm not going to use it.

You can distribute the OCX that contains the Microsoft Flat Scrollbar. One of it's formatting properties allows it to have a 3D look.

>So I tried using the form's scroll bars to scroll the image, which turned out to be some what quirky. You can only zoom in so much before the image becomes clipped.

In VFP8 you are dealing with the limit of 2x video resolution. I can zoom an image to 5 or 6 times it normal size before the img goes to all black. Smaller images can be zoomed larger. One 1500x2000 image can be zoomed to 24000x32000 on my 1920x1200 video system.

>Also, setting the stretch property to isometric leaves alot of blank space to the left of the image, so you're always scrolling to the right.

It shouldn't. When you first load the picture you can center it and set the size to the dimensions of the jpg. Which is what this code is doing:
   with thisform.imgZoom
      .Stretch = 0
      .Picture = lcPicture
      .Left = ( thisform.Width - .Width ) / 2
      .Top = ( thisform.Height - .height ) / 2
      .Stretch = 2
   endwith
It sets .Stretch back to 0 so that when the .Picture is set the .Height and .Width will be set to those of the image. It's then centered and Stretc set to 2 so that I can zoom in by doubling the .Height and .Width and zoom out by halving them.

>Setting that property to stretch solves that problem but I want to display a true size of the image.

It'll also change the aspect ratio if you've set the .Height and .Width to values that aren't based on he jpg dimensions, which is usually a bad thing to do.

>So for now I decided to go back to my original plan that uses the Kodak active X control. It works good but for some unknown reason it consistantly stops the app in one screen of the app. When I say stop I mean it runs with no errors but the dialog screen it's in is not visible nor can you interact with it leaving me with no other option then ctrl+alt+del.

You are going to run into problems with that control because starting with XP Microsoft stopped shipping it.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform