Posted 5 months ago by Marc Beeson - Precision Mining
Version: 22.1.0
Avatar

I have updated to v2022.1, but there still appears to be no functionality to change the scrollbar theme/skin/colour. I have looked in the documentation but couldn't find anything about it.

We have light and dark skins like most applications these days. Is it possible to change the scrollbar colour yet?

Comments (2)

Answer - Posted 5 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Marc,

The scrollbars in the WinForms SyntaxEditor are drawn by a SyntaxEditorRenderer class that has methods such as DrawScrollBarBackground, etc. that you can override in a derived class.  The SyntaxEditorRenderer uses visual styles (to match the system) when drawing the scrollbars.  If you override the various Draw methods on that class, you can draw the scrollbars however you please.

Then set an instance of your custom renderer class to the SyntaxEditor.Renderer property and it should use your custom logic.


Actipro Software Support

Posted 5 months ago by Marc Beeson - Precision Mining
Avatar

Thanks, that pointed me in the right direction.

The latest build of this product (v22.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.