Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Image control in a form and report
Message
De
22/03/2007 15:04:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
01207128
Message ID:
01207306
Vues:
23
I feel real stupid, but I cannot get it work. What I did in the "click" method of the "Add/Change" button.

I changed the field "picture" from "General" to "Character 100".
For "Edit" I changed "Append ... " to "Replace ...". That does put the value of the location of the image file in the field "picture".

What I have not be able to do is display the image file in "imgPicture".

I think I have to set the controlsource to "none", otherwise I get an error message.

What I cannot figure out is what property I need to set to display the image.

>>I guess I was not clear enough. What I have now is 5 tabs on the form the fifth tab is the "Picture" tab
>>on the form and looks like
>>
>>     --------------------       ----------------
>>    | Add/Change Picture |     | Remove Picture |
>>     --------------------       ----------------
>>
>>        ------------------------------------
>>       |                                    |
>>       |   Item to show image (imgPicture)  |
>>       |                                    |
>>       -------------------------------------
>>
>>Current the non-default properties of "imgPicture" are ContorlSource = Table.picture, Stretch = 1 - isometeric
>>
>>The "Click" method of the "Add/Change" Button has in it
>>
>> lcPictureFile = GETPICT('BMP','','Select Picture")
>>
>>I assume I can change 'BMP' to ''.
>>
>>It also has
>>
>> Append General From (lcPictureFile) Link
>>
>>What do I change that to?
>>
>>I assume I could do something similar in the next, ... methods.
>
>Replace mPictureFile with m.lcPictureFile in myTable (if you want to store with the path).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform