Set color of BarButtonLink

Bars for Windows Forms Forum

Posted 13 years ago by Lisa
Version: 2.0.0073
Avatar
Hi,

I am using a DockableToolBar with several buttons on it. I need to be able to get and set the back color for one of the BarButtonLink buttons programmatically. I don't see any color properties exposed like there are on the Microsoft ToolStrip controls. Is there a way to do this?

Thank you,
Lisa

Comments (2)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Lisa,

Right now there aren't any properties like that. However what you could do is store a custom color in the Tag property and then override one of our BarRenderers and override a method like DrawButtonLink to draw the background if that color is set in the Tag property.


Actipro Software Support

Posted 13 years ago by Lisa
Avatar
Thanks for your help, that does the job.

Lisa
The latest build of this product (v2018.1 build 0341) was released 9 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.