Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tree Control
Message
De
09/04/1999 00:12:04
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00206274
Message ID:
00206782
Vues:
33
Hmmm....Hi David ---

Sounds like OLE drag-drop code would come to the rescue. The code says that if someone drags something over the Treeview, highlight the row that the object to be dropped is over. If you subclass a TreeView control in VFP, I think (not sure) that you gain control over Drag and Drop functionality and can write the appropriate VFP code. If not, you can put the TreeView into a Container and dupe the code using the container Drag and Drap methods/events.

This assumes VFP 6, though.


>I'm looking for help to translate this code for FoxPro. I'm having trouble setting the DropHighlight property.
>If anyone knows of any good help systems for ActiveX designed for Visual FoxPro, I would appreciate it if you would let me know.
>
>Thanks
>******
>Private Sub TreeView1_DragOver(Source As Control, x As Single, y As Single, State As Integer)
> If indrag = True Then
> ' Set DropHighlight to the mouse's coordinates.
> Set TreeView1.DropHighlight = TreeView1.HitTest(x, y)
> End If
>End Sub
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform