Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Do I store image data in PictureVal
Message
From
16/10/2005 23:36:25
 
 
To
14/10/2005 07:45:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01057389
Message ID:
01059538
Views:
16
>
>If you are picky you can say that everything comes from disk in the first place, so what's your point?
>

Since you ask, and appear not to have read my original post, my point is this:

A class (ideally) is supposed to work without any external files or resources. In my class I have many images that at the moment I have to store on disk and also supply with the class. (Note there is no mention of an EXE here).

I read on Craig Berntson's blog where he says that using the PictureVal you don't need to access files on disk anymore. Thinking this was a solution to my problems, I further investigated and on failing to use this property to actually STORE anything useful, I came to the UT with my questions, hoping for some enlightenment.

I already know about Blobs and exe files. That was not what I was looking for, but a way to store the actual bitmap in the Pictureval property so that I did not have to ship the BMP's. Besides I believed this was possible since an MVP had said so.

That was my point. I hope I am clear. I am not picky, just looking for a particular solution. Since I already know about EXE files and blob fields, I am not really looking for solutions using those methods.

Only a way to actually use the PictureVal property as it was meant to be used - to store an image at design time to display at runtime.

I can see no use for a property that needs to be set at runtime only. It might as well have been a method to call to access the file than to be a Property that you need to set at runtime and then be forced to write additional code to get the data and display.


>At least I showed you a way to include the picture inside the exe and reduce the number of files for distribution, which I thought may be your concern.
>
>If you want to be able to show a picture on some canvas by a handle you may consider using some ActiveX component are Win API calls to do this kind of things.
>
>Bye, Olaf.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform