Howto make a TreeView readonly above item no 5

  • Thread starter Thread starter Lars Grøtteland
  • Start date Start date
L

Lars Grøtteland

Hello!

I would like this to happen:

In my treeview - I have 4 main group, and about one hundred items under
these four. Are there any way of making the selection under the fourth item,
item number 5. How can I set everything above this "read only"? And
everything below available to be selected.
Are there any way of doing this?
 
Lars Grøtteland said:
In my treeview - I have 4 main group, and about one hundred items under
these four. Are there any way of making the selection under the fourth item,
item number 5. How can I set everything above this "read only"? And
everything below available to be selected.
Are there any way of doing this?

You can handle TVN_SELCHANGING notification and prevent the selection
from moving to the items you don't want it to move to.
--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
 
Back
Top