> I have a very small application with large number of BMP and
> MSK files I compile the whole lot in an APP
> 
> When I set proce to this app, the screen misses out all the
> BMP's unless I copy them seperately to the folder. The very 
> process I'm trying to avoid.
> 
>  Does anyone have some idea what I'm doing wrong ?
> Sytze


It may be something like having to specify the fully qualified
path+filename (for your app's root folder) to see the BMP's embedded in
the EXE? Haven't done it, so that's just a guess.

To mention another possibility, because I know this works, is to use a
memo field to store the BMP's. Below is some code that displays a
"picture" (any variant, thanks to VFP's use of GDI+) stored in a memo
field (in this case the field name having been selected in a combobox). 
 

Bill


* Interactive change on a combobox ...

cfield = this.DisplayValue              && field name in combobox 

* If not a memo field, can't work it with

IF TYPE(cfield) <> 'M'
*!*      =MESSAGEBOX("Selected field must be a MEMO field",0,m_product)
 RETURN
ENDIF

* If we have a record with an empty 
* memo/picture field, clear the image from the last record

IF EMPTY(&cfield)
 this.Parent.image1.PictureVal = ''
 return
endif

* Show the picture in the memo field in the image control, using
pictureval

IF this.Parent.image1.Pictureval <> &cfield 
 this.Parent.image1.Pictureval = &cfield 
endif

return



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to