BarPopupButtonCommand's losing 'arrow' when image used

Docking/MDI for Windows Forms Forum

Posted 18 years ago by John Mancine
Avatar
As soon as I add an image to a popup button, the small black triangle on the right of the popup button disapears. Everything else functions fine, but it looks confusing for the user. I have tried using an Image as well as an ImageIndex and both have the same result.

It's worth nothing that the black triangle shows up and looks fine in the 'customize' preview but in the running application it disappears.

Any ideas?

Thanks,
John

Comments (2)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi John,

The renderer defines a PopupButtonLinkArrowStyle property that you can set. The IBarRenderer renderer interface just defines a "get" for that property but the BarRenderer base class (that all other built-in renderers inherit from) has a setter as well. So if you are going to set this option in code, you can cast the BarManager.RendererResolved property to BarRenderer and then set that property.

It defaults to BarPopupButtonLinkArrowStyle.TextOnly, which matches how Microsoft typically does things. But it seems like you'd want to set it to BarPopupButtonLinkArrowStyle.ImageAndText.


Actipro Software Support

Posted 18 years ago by John Mancine
Avatar
Perfect! Works great now.

Thanks for the quick reply,
John
The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.