本文介绍了如何使用VCL样式更改SynMemo中滚动条的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有.我使用VCl主题更改了标准对象的样式.
there. I changed style of standard objects with VCl-theme.
我使用颜色",字体"和装订线"属性来更改SynMemo的样式.但我不知道,如何更改SynEdit的ScrollBar的样式(应用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 ?
推荐答案
要添加对TSynEdit
的样式支持,必须为该控件注册样式钩子.尝试使用TScrollingStyleHook
样式钩子.
To add styling support for the TSynEdit
you must register a style hook for such control. Try using the TScrollingStyleHook
style hook.
像这样
TStyleManager.Engine.RegisterStyleHook(TCustomSynEdit, TScrollingStyleHook);
这篇关于如何使用VCL样式更改SynMemo中滚动条的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!