Page 1 of 1

vb question

Posted: Sun Jun 12, 2005 5:02 pm
by Oldfriend
how to disable a tree node's checkbox from being modified (altered in state) by the user?
I want them to be able to use the checkboxes but for surtain ones I would like to "lock" out

Posted: Sun Jun 12, 2005 5:03 pm
by PhoeniX
chkAasdsad.enabled = false ?

Posted: Sun Jun 12, 2005 5:10 pm
by Oldfriend
PhoeniX wrote:chkAasdsad.enabled = false ?
are you implying that I can disable an indivisual node's checkbox property within the same tree?

Posted: Sun Jun 12, 2005 5:27 pm
by glossy
i don't have a lot of experience with tree nodes and stuff in VB, but given what methods usually have to be taken toward this sort of issue, why not just wait for your listtree_change / listtree_click / listtree_focus / whatever, and check if the values of the ones you don't want changed, have changed. if so, reset them.

shouldn't be too hard :)

Posted: Mon Jun 13, 2005 1:06 am
by Keep It Real
who knows, i don't really fuck with the internet

Posted: Mon Jun 13, 2005 1:34 am
by Oldfriend
k I found a way around it, I just set the tag of that node to something like: "not editable" and on" node_check" event I check it and just set it back to it's original value after the user changes it.

But it wouldn't work because apparently the tree would do some preliminary stuff even after the event so I have to trick it with a timer...blah blah blah... anyway thanx for the help