How to create object manager with color picker attribute? (C++)

Hello,

This question is actually more MFC than Rhino related, but here it goes.

I’m creating a custom object manager with CListBox, like here. Now, I need every object to have an individual attribute to it, that is a color that can be changed when clicking on it. It could also be a string, something similar to the way the layer manager in Rhino handles colors.

pic01

I don’t find a way to do this with CListBox… I know in MFC there’s CListCtrl but I’m not sure if this is what I need. Any idea?

Many thanks,
Pablo

Hi @pagarcia,

Yeah, you’ll probably need a CListCtrl, as a slimple list box just handles text. And, even using a CListCtrl you’ll still need to do some owner-drawing of cells.

– Dale