LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to handle events occuring on different items in a tree control

I am developing a small application in which I need to display different panels when user clicks on a tree control item....how to make it display a panel inside a parent panel when a user clicks an item in a tree control....any help would be greatly appreciated. thank you

If you are young work to Learn, not to earn.
0 Kudos
Message 1 of 3
(3,005 Views)

The tree control can handle several events that you can rely on to handle user interaction. I suggest you take a llok at treeevent.prj example that comes with CVI. In your situation, one possible event to handle is EVENT_SELECTION_CHANGE, that marks the operation the user does when clicking on a new tree item.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,001 Views)

Another sample program that is useful is events.prj. It lists all events, indicates which are swallowable (and lets you swallow them), lets you select which events to track, and displays the eventData1 and eventData2 values for each event.

0 Kudos
Message 3 of 3
(2,997 Views)