Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble using ActiveX controls in VFP
Message
De
14/08/1998 23:23:00
 
 
À
14/08/1998 20:04:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00126922
Message ID:
00127117
Vues:
31
>Craig,
>
>I posted this before I saw your message, and thought I'd see if you had any advice for me here. I am hitting a wall. I am using 6.0, so are you saying that Drag 'n Drop will work wihtout using a VB wrapper??
>
>Here's my message:
>
>When it came to adding the treeview ActiveX control (which is delivered with Windows), I did a little research. And, after finding out that this control would not support drag & drop in VFP 5.0, I found one that would. It was a sub-classed VB wrapper ActiveX control, based on the orginal Treeview. So, with this in hand, I went on to design, and use of the new control. Well, as it turns out, I do need to access some elements within the VB control while using it, and I just get OLE errors that kick me out of VFP. I'm not sure if this has anything to do with Dual Binding or not. (I found out the hard way, that I needed to issue sys(2333,0) before I instantiate this VB wrapper control AND before I edit anything that uses it, including forms, in VFP.) At this point, I have spent 8 days total on analysis, design, coding, changes to the wrapper in VB, etc. And I feel like I am back at square 1. Does ANYBODY HAVE ANY ADVICE FOR ME???? pLEASE.
>
>tHANKS,]
>LAURA>>I've had limited success using ActiveX controls from various vendors within VFP 5.0a. Microsoft article Q176270 mentions this problem, saying "When you use the TreeView control (comctl32.ocx) in a VFP application, several issues may prevent you from using all the features of the control." For example, drap-n-drop doesn't work using the native control. Their solution is to ceate an ActiveX wrapper control in VB, to encapsulate the native control and implement the desired behavior.
>>>
>>>Does anyone use this technique for using controls within VFP?
>>>Or, are there ActiveX vendors selling controls that actually work within VFP?
>>
>>
>>ActiveX support has been improved in VFP 6.0. Also, OLE drag and drop has been added so that it works with things like ActiveX controls and other applications.


I haven't played with OLE Drag & Drop yet, so I can't be much help. But, you can't use both the old drag & drop methods and the new OLE ones at the same time. Jim Booth did the OLE drag & drop session at DevCon. Jim...are you there???
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform