Jump to content

Highlighting a Tree control item


Recommended Posts

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

Link to comment
  • 2 weeks later...

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.

post-123-1156880639.gif?width=400

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.