Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to AddObject Ole-objects to a form at runtime?
Message
De
18/05/2005 05:58:54
Evert Meulenkamp
Meulenkamp Automatisering
Hengelo Ov, Pays-Bas
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
How to AddObject Ole-objects to a form at runtime?
Versions des environnements
Visual FoxPro:
VFP 6 SP3
OS:
Windows '98
Database:
Visual FoxPro
Divers
Thread ID:
01015240
Message ID:
01015240
Vues:
81
Hello,

My goal is to show different pictures in the original application they were made in, after the user clicks on a button on my form.

The next code does not work because the property "DocumentFile" is protected. I try to set it in the Init() of olePict, a subclass of the baseclass OleObject, to avoid the user-dialog to select a document on creation of the object.
Does anyone have a suggestion on how to do this, or is there a better way to show pictures in their original applications on VFP6 (Windows 98) (WITHOUT using General fields).

LOCAL lcPicture
lcPicture = v_pic.pictname && Get name and location of picture from memofield
THISFORM.AddObject("olePict1","olePict","&lcPicture")
THISFORM.olePict1.Doverb(0)

Thanks for any suggestions!

Evert.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform