Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView enable / disable nodes and leaves?
Message
From
08/07/2004 15:12:43
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/07/2004 13:55:51
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00922126
Message ID:
00922174
Views:
25
This message has been marked as the solution to the initial question of the thread.
>I'm using a treeview as an alternative to a menu.
>
>Like in a menu, some items are not always available, and should be disabled and enabled according to rules in the program.
>
>Is this possible?
>
>TIA

Peter,
You can simulate :
-Set forecolor to gray
* oNode.Forecolor = rgb(172,168,153)
-In tree.Mousedown save selectednode
-In NodeClick if it's a disable node select saved one and return
If aDisabledNode
this.SelectedItem = this.SavedNode
return

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform