Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visio Control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Visio Control
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00976269
Message ID:
00976269
Vues:
38
I'm placing the Visio ActiveX control on a VFP form. I'm able to click the drawing and get information about the object. For instance, the following code is a simple way to get at the object and display information about it:
*** SelectionChanged Method
*** ActiveX Control Event ***
LPARAMETERS toWindow

for each oItem in toWindow.Selection
   wait window alltrim(oItem.Name) + " Data1 = " +;
      alltrim(oItem.Data1) timeout 1
endfor
However, if I put on object in another object (for instance, using the Electronics template I can place a "board" on the drawing and then place other objects in that), I can select that inner object, but the code above will not work. I'm still figuring out the capabilities of the control and the object model for Visio. There's probably another way to get at the contained object. Anyone know what that might be?

Thanks,

Russell Campbell
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Répondre
Fil
Voir

Click here to load this message in the networking platform