Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview + VFP5. How to set drophighlight to nothing
Message
From
07/11/2000 13:34:50
 
 
To
07/11/2000 12:34:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00438827
Message ID:
00438912
Views:
20
>>>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform