Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView
Message
From
30/04/2001 11:41:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
30/04/2001 09:44:17
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00501484
Message ID:
00501585
Views:
12
>I have a form that allows the user to pick different nodes from a TreeView. When a node is selected its title and corresponding data is added to a ListBox on the same form. I only want to allow the user to select a node once. Is there anyway to disable a single node on the TreeView after it has been selected? i.e. is there anyway to change its color, its image, ect.? I'll also need to be able to re-enable it if it is removed from the listbox.
>
>Any help would be appreciated.

You could use some property of node to track selected (ie: bold, checked) When attempted to readd check that property. When removed from listbox set its property to unselected.
(or Remove & add node)
In both cases keep properties like ParentKey, Key in listbox for locating, adding, removing in treeview.
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
Reply
Map
View

Click here to load this message in the networking platform