Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NodeCheck Event
Message
From
19/06/2001 11:35:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
19/06/2001 11:16:06
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00507685
Message ID:
00521082
Views:
19
Mytreeview.object.enabled = .f.

For hierarchical data IMHO MS Hierarchical Flexgrid suits better.
Cetin

>I´ve found this thread while looking for help about treeviews, wich you seem to know well; so here´s my question: How can I disable the treeview? i've tried mytreeview.enabled = .F. but it remains active. the user can check, expand, etc any time.
>
>Any ideas?
>Some other control to handle hierarchical data? (with checkboxes included please.)
>
>TIA
>
>
>>Hi!
>>
>>ActiveX controls work quite differently than VFP objects, so that behavior is dictated by the implementation of the Tree View control. The workaround here is to use a timer to refresh tree view control properly. After message box enable timer control. In the Timer event of the timer control pout code to change the checked/unchecked status of the node in tree, and than disable timer. Fire it as soon as code finished (10 milliseconds is fine).
>>
>>
>>>Hi,
>>>
>>>I have a treeview with checkboxes. There are situations where the user CAN'T uncheck a node. When he unchecks a node, a decide if he can do it in the nodecheck event. If the node must remain checked, i check the node (wich the user unchecked) and display a messagebox. The problem is that when the messagebox closes, the check mark (that I've placed in nodecheck event) dissapears, and the node seems unchecked. Is this the type of situation like "You can't call the release method from the init method when running a form! It won't work!!" . How can i do this??
>>>
>>>TIA
>>>
>>>Alonso
Ç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