Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Borislav,
>You wrote:
>Do not store picture in the table, keep only path to it.
>If your application is multyuser you could copy that picture to a folder where everybodey have access (some subfolder of your data folder)
>Then you could use:
>thisform.Image.Picture = ALLTRIM(Table.Field)
>at every change of the record pointer of your table.
(1) I understand that this technique -- setting Picture property to the name of a field that contains an
absolute path -- can be used with picture objects on a report (undocumented VFP feature). Are you
saying that I can do the same thing with the Picture property of image controls on a data entry form
at runtime?
(2) I am trying to drag-and-drop a thumbnail image from a Web site to an image control on a VFP form
at runtime. The Web site image is a JPG, and the image control's OLEDragOver method confirms
the availability in oDataObject of the image file contents in DIB (device independent bitmap) format, which VFP
supports. OLEDragDrop is triggered okay with DIB format -- 8 -- confirmed okay within the method,
so I set memvar lqContents = oDataObject.GetData(8). At this point,
VARTYPE(lqContents) = Q -- binary. However, when I then set This.PictureVal = lqContents, the image
is not displayed. Is there some data conversion of lqContents that I have to do at this point in order to display
the image?
TIA,
-mark
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement