TSRVScrollBar.Scroll always returns only scTrack

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
Jim Knopf
Posts: 241
Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:

TSRVScrollBar.Scroll always returns only scTrack

Post by Jim Knopf »

Hi Sergey,

I currently want to equip all controls from my program 'Patchwork' with scroll function with TSRVScrollBar, to be able to adapt the color of the scrollbars to the respective skin. But the event 'Scroll' always returns only scTrack, no matter what the user enters.
It works for the normal component TScrollbar, but unfortunately that is of no use to me.

Can you please let me know if there is anything I can adjust in the code to get the other ScrollCodes as well (csUp, csDown, etc.)?

Best regards
Martin
Jim Knopf
Posts: 241
Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:

Re: TSRVScrollBar.Scroll always returns only scTrack

Post by Jim Knopf »

I just noticed that the ScrollCode option may not be necessary for controlling other controls like list boxes or memos.

But how can I scroll in a TRichViewEdit without the ScrollCode?
Sergey Tkachenko
Site Admin
Posts: 17554
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: TSRVScrollBar.Scroll always returns only scTrack

Post by Sergey Tkachenko »

I'll see if it can be fixed. But YSRVScrollBar is used internally by TSRichViewEdit component, and ScrollCode is simply ignored, only ScrollPos is used.
Jim Knopf
Posts: 241
Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:

Re: TSRVScrollBar.Scroll always returns only scTrack

Post by Jim Knopf »

Sergey, this is not important by now - so I don't need it.
For this, could you please tell me how I can scroll in a TRichView(Edit) with ScrollPos? That would help me a lot.
Post Reply