zxcatzeyez Posted August 18, 2006 Report Share Posted August 18, 2006 Hi everyone, I am working with a custumized version of a LV8 tree control and am tring to highlight a tree item when the user right clicks an item. The default action of the LV8 tree control is to display the shortcut menu for the CONTROL not the ITEM CLICKED. Using the 'Point to Row Column' method, I am able to detect which item is right-clicked but if the item clicked is NOT the item that is highlighted, the click item is not highlighted when the shortcut-menu is displayed. Does anyone know if: a) this is a bug? b) there is a programatic property/method to highlight a tree item? c) any other way to highlight a tree item when it is right-clicked. Thanks for any help you can offer. Jon Quote Link to comment
Dan Press Posted August 29, 2006 Report Share Posted August 29, 2006 To highlight a tree item, just write the item's Tag value to the Tree. You can use the dreaded Value property, wire it directly to the tree (if it's an indicator), or use a local variable. Note that it is a Filter event and the right-click is discarded. That will prevent the run-time pop-up menu from ruining your day. Rock on, Dan Press PrimeTest Automation Quote Link to comment
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.