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.

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.