Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview + VFP5. How to set drophighlight to nothing
Message
De
07/11/2000 13:34:50
 
 
À
07/11/2000 12:34:51
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00438827
Message ID:
00438912
Vues:
22
>>>>>Going nuts with treeview control. How do you set DropHighLight to Nothing ?
>>>>>This works :
>>>>>oNode = somenode
>>>>>.DropHighLight = oNode
>>>>>oNode = .NULL.
>>>>>
>>>>>But not this one (either already .Null. or not):
>>>>>.DropHighLight = .NULL. && Type mismatch
>>>>>
>>>>>I could totally drop using drophighlight if you know a way to highlight current node when the treeview is disabled.
>>>>>Any help would be appreciated. TIA.
>>>>>Cetin
>>>>
>>>>Cetin,
>>>>
>>>>I don't know if this works with the TreeView for VFP 5, but in VFP6, we just set the HideSelection property to .F. and the TreeView maintains it's highlight when it doesn't have focus or when it's not enabled.
>>>
>>>Fred,
>>>Unfortunately doesn't work in VFP5. Already it was .f. It only does so if enabled. Thanks.
>>>Cetin
>>
>>OK, when I tried it in VFP6, the TreeView was initially enabled, a node highlighted, and then I disabled it. Maybe you need to have it enabled until you actually have a node selected, then disable it?
>>
>>The node was selected via code, not via a mouse click.
>
>Thinking alike :) That didn't help either. It has the same backcolor for disabled items and selected item when treeview doesn't have focus (I couldn't find a place to change coloring).
>Cetin

Have you tried using the TreeView from VFP6 in your VFP5 app? I don't think there's any reason you can't, except maybe not having it. :)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform