Icons in BarComboBoxCommand

Docking/MDI for Windows Forms Forum

Posted 9 years ago by Mike O
Avatar
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 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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 (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.