Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capturing pictures
Message
 
À
06/06/2002 02:14:36
Stephanie Caragos
Ebs Accounting Software Solutions
Cagayan de Oro City, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00665279
Message ID:
00665396
Vues:
16
Stephanie,

I am just doing this. I grabbed the OLE control from the main VFP control toolbar and dragged and dropped it on my form and made it the size that I wanted my picture to be about 3" x 5". Then I put some code in a command button for the Picture property such THISFORM.imgPicture.Picture="c:\pictures\pic1.jpg" or it could be .pcx, but JPG takes up less storage space and comes from a digital camera in that format I think. And I make the control source property for the OLE Image Control something like MyPics. So you could have MyPics="c:\pictures\pic1.jpg" and I think it would accomplish the same thing as THISFORM example above. Do a form Refresh so the pic shows up when you run the form. You could use a substitution name for the picture location because there will be alternate picture names/locations that have to be shown. Also, you should probably keep all the pics in a common directory so you can locate them in that spot time and again.

I am still refining this process in my form that I am currently working on so I hope this helps you get started. Have a nice day.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform