Jump to content

Tree control how to add custom icon to column


Recommended Posts

Posted

Hello everyone,

I want to implement a similar function in the image. You can add or set icons in other columns of the tree control. How should I do this function?

thanks a lot.

 

image.png

Posted

You've probably already found some stuff but here is an old thread that talks a bit about it.  It is an unofficial feature that NI seemingly never finished, or never documented.

INI keys can help you, or I think you can copy a MCLB that has the feature enabled. Another solution I've done in the past is to have a 2D picture box on top of the control, then having that be an image that you can set. This gets way more complicated with scrolling, and resizing windows, but it allows you to have glyphs that aren't the default size which is also what I wanted.

Posted
On 10/11/2025 at 7:03 PM, hooovahh said:

You've probably already found some stuff but here is an old thread that talks a bit about it.  It is an unofficial feature that NI seemingly never finished, or never documented.

INI keys can help you, or I think you can copy a MCLB that has the feature enabled. Another solution I've done in the past is to have a 2D picture box on top of the control, then having that be an image that you can set. This gets way more complicated with scrolling, and resizing windows, but it allows you to have glyphs that aren't the default size which is also what I wanted.

Hi Hooovahh,

  Thanks for your answer. the vi's link of example is unreachable, and the picture that I uploaded is used tree control, also, I think multilistbox and tree control would use similarar way to achive multiple columns glyphs , but I don't have good thoughts right now, could you provide a better direction? the labview version that  I use is 2020. 

  Thank you again.

 

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.