Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying Graphics on a Form
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00429175
Message ID:
00429226
Views:
20
I'm using VFP5 and the picture format is JPG so I am using Imagen by Pegasus (since VFP5 does not handle the JPG format). I have added method to my form called UPDATEPHOTO. I have a page frame on my form and sometimes the photo needs to be displayed and sometimes it does not. (The photo is actually on top of the page frame.) Then in the Refresh for the form I have THISFORM.UPDATEPHOTO().

With this as a separate method I can call it from the Init event. The REFRESH Event and I also call it from the ACTIVATE events on the different pages in the page frame (it can then decide if the picture should be displayed or not).

>Actually, I've tried your suggestion and it worked with the following in the refresh event of the form:
> thisform.picCartridge.picture = (thisform.txtPicfile.value)
>
>The only problem is there is no refresh event for the picture so I can't followup the command with: thisform.picCartridge.refresh
>
>So when I go to the next page or a previous page the picture doesn't get updated. Is there another way to refresh a picture?
____________________________________________

Norm Peterson

It's a dog eat dog world out there,
and I'm wear'n milk bone underware!
Previous
Reply
Map
View

Click here to load this message in the networking platform