vb question

Open discussion about any topic, as long as you abide by the rules of course!
Post Reply
Oldfriend
Posts: 93
Joined: Tue May 03, 2005 6:07 am

vb question

Post 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
User avatar
PhoeniX
Posts: 4067
Joined: Fri Aug 04, 2000 7:00 am

Post by PhoeniX »

chkAasdsad.enabled = false ?
Oldfriend
Posts: 93
Joined: Tue May 03, 2005 6:07 am

Post by Oldfriend »

PhoeniX wrote:chkAasdsad.enabled = false ?
are you implying that I can disable an indivisual node's checkbox property within the same tree?
glossy
Posts: 2282
Joined: Tue Apr 30, 2002 7:00 am

Post 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 :)
Keep It Real

Post by Keep It Real »

who knows, i don't really fuck with the internet
Oldfriend
Posts: 93
Joined: Tue May 03, 2005 6:07 am

Post 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
Post Reply