about TTreeView multi-select

Hi;

I want to use the multi-select option of the TTreeView component. But I want to put just this restriction:

"The user cannot select a descendant of a previously selected node"

I check this situation in the OnChanging event and if such a situation occurs, I turn the AllowChange variable to false, but it does not work. Furthermore, it spoils the previous selections.

What is wrong with it?

Thanx...

Comments

  • : Hi;
    :
    : I want to use the multi-select option of the TTreeView component. But I want to put just this restriction:
    :
    : "The user cannot select a descendant of a previously selected node"
    :
    : I check this situation in the OnChanging event and if such a situation occurs, I turn the AllowChange variable to false, but it does not work. Furthermore, it spoils the previous selections.
    :
    : What is wrong with it?
    :
    : Thanx...
    :
    I would use the OnChange() to check if one of the parents of that node is already selected. If it is, then change the Selected property back to false.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion