Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NodeCheck Event
Message
From
19/06/2001 11:16:06
 
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00507685
Message ID:
00521066
Views:
17
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
There´s a better life... Just it´s more expensive!
Cristóbal Manrique M.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform