Icons in BarComboBoxCommand

Docking/MDI for Windows Forms Forum

Posted 14 years ago by Astera user - Astera Software
We're using BarComboBoxCommand for a pretty standard purpose and now want to display an icon next to the text for each of the items. If this was a normal dropdown control, I guess I would use the OwnerDraw option to do this, but I don't see anything of the sorts here. Any advice?

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Mike,

You can set a custom IBarRenderer to your BarManager.Renderer property. In that custom class you'd want to inherit whichever renderer of ours you use and override the DrawComboBoxLink and MeasureCommandLink methods as appropriate to draw the image and ensure that space is reserved for it.

Actipro Software Support

The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.