ChrisMac
13 years agoContributor
TreeView checkbox - checked/unchecked state
Hi All -
I've got a PhaseTreeView class where I'm trying to determine if an item (branch) in that tree (which has a checkbox associated with it) is checked or unchecked. The object spy gives me this:
phaseTreeView.wItems.Item(0).Checked
But the Checked property had a red "X" icon and the following text where the value would be:
Error: Error
The tree nodes have no check boxes.
The TVS_CHECKBOXES window style is not set.
So how do I set the TVS_CHECKBOXES window style? Or is this property simply not available to me?
I've tried other properties like:
Item(0).Checked
but they aren't giving me the correct value.
Chris
I've got a PhaseTreeView class where I'm trying to determine if an item (branch) in that tree (which has a checkbox associated with it) is checked or unchecked. The object spy gives me this:
phaseTreeView.wItems.Item(0).Checked
But the Checked property had a red "X" icon and the following text where the value would be:
Error: Error
The tree nodes have no check boxes.
The TVS_CHECKBOXES window style is not set.
So how do I set the TVS_CHECKBOXES window style? Or is this property simply not available to me?
I've tried other properties like:
Item(0).Checked
but they aren't giving me the correct value.
Chris