SRVPageScroll SRichViewEdit ScrollBar

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
devx
Posts: 1
Joined: Tue Apr 01, 2014 6:42 pm

SRVPageScroll SRichViewEdit ScrollBar

Post by devx »

How to change the appearance (style) ScrollBar component in SRichViewEdit and SRVPageScroll independent themes windows ScrollBar.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Scrollbars of SRichViewEdit can be customized using TSRVSkinManager component. Example can be found in Demos\ActionTestTabs\

Unfortunately, SRVPageScroll uses standard windows scrollbars. You can hide it (VScollVisible = False) and use an external TSRVScrollBar (that can be customized using TSRVSkinManager).
To update this external scrollbar, you can use VScollPos and VScrollMax properties of SRVPageScroll, its OnVScolled event, SRichViewEdit.OnPageCoutChanged event.

----

Alternatively, you can use VCL visual styles, if you use Delphi XE2 or newer.
Post Reply