How to change color of the scrollbar in SynMemo with VCL styles

时光总嘲笑我的痴心妄想 提交于 2019-12-10 09:25:41

问题


there. I changed style of standard objects with VCl-theme.

I use Color, Font and Gutter properties to change style of SynMemo. But I don't know, how change style of ScrollBar of SynEdit( apply vcl-theme ). Who can help me ?


回答1:


To add styling support for the TSynEdit you must register a style hook for such control. Try using the TScrollingStyleHook style hook.

Like so

TStyleManager.Engine.RegisterStyleHook(TCustomSynEdit, TScrollingStyleHook);



来源:https://stackoverflow.com/questions/41728781/how-to-change-color-of-the-scrollbar-in-synmemo-with-vcl-styles

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!