Jump to content
shoneill

Highlight item in Project tree

Recommended Posts

I wanted to create a shortcut menu entry for finding a VI / sub-VI in the current project context but I can't find any methods to help me accomplish such a thing.  I can get the current project context, but is there even a way to control what is selected? Or to highlight an entry in the tree?

Share this post


Link to post
Share on other sites

If you get a reference to the specific ProjectItem in the project, there is a private method in the ProjectItem class which allows you to select/highlight items in the private tree. It works for the simple case I tried.

Send me a message if you can't find the method.

Share this post


Link to post
Share on other sites

You can also press Ctrl-Shift-E from an open VI to select that VI in the project explorer.

  • Like 1

Share this post


Link to post
Share on other sites
On 7/13/2018 at 2:12 PM, Darren said:

You can also press Ctrl-Shift-E from an open VI to select that VI in the project explorer.

Yes I use this all the time.  I do wish this extended to Libraries not in an open project, vote here if you feel the same.

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
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.