Page 1 of 1

TSRVScrollBar.Scroll always returns only scTrack

Posted: Sun Aug 27, 2023 7:48 pm
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

Re: TSRVScrollBar.Scroll always returns only scTrack

Posted: Mon Aug 28, 2023 7:33 am
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?

Re: TSRVScrollBar.Scroll always returns only scTrack

Posted: Mon Aug 28, 2023 9:00 am
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.

Re: TSRVScrollBar.Scroll always returns only scTrack

Posted: Mon Aug 28, 2023 9:45 am
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.