Set color of BarButtonLink

Bars for Windows Forms Forum

Posted 18 years ago by Lisa
Version: 2.0.73
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 18 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 18 years ago by Lisa
Avatar
Thanks for your help, that does the job.

Lisa
The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.