CTR Posted September 8, 2009 Report Posted September 8, 2009 I am trying to program a tree view with 2 columns. The second column I would like to be able to edit some of the line but not all of them. Does anyone know how to disable only one element in a tree view and still be able to select this line. When I use the Disabled? Property node, If I select this line the tree value is empty. Is it possible to know that I have slected that line? Thanks for your help! Quote
Mellroth Posted September 8, 2009 Report Posted September 8, 2009 Does anyone know how to disable only one element in a tree view and still be able to select this line. Hi, You can catch the mouse-down event on the Tree control, and discard this event if a disabled element (row + column) was clicked. /J Quote
Ton Plomp Posted September 8, 2009 Report Posted September 8, 2009 Hi, You can catch the mouse-down event on the Tree control, and discard this event if a disabled element (row + column) was clicked. /J Even better is the 'Edit Cell?' event. You can discard the actual editing before the characters are shown. To be fancy I would sound a 'beep.vi'. Ton Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.