TScroller scroll bars behave erratically
Borland's Object Windows Library for the modern age
Brought to you by:
jogybl,
sebas_ledesma
Although AdjustScroller() is called when a line is added, the scrollbar will not appear even if Scroller->SetRange applies an yRange well beyond the number of sreen lines.
The problem is not related to TCoolScroller, it also occurs with TScroller.
Last edit: Erwin Lotter 2025-08-04
This issue has been fixed in branches/elotter-cooledit by [r8524].
In fact, the fix is more of a workaround than a solution and could indicate that there is an issue with the underlying scroller handling.
Related
Commit: [r8524]
Diff:
Thanks for creating the ticket and looking into this. I ran into the same problem on the trunk. At some point I had some elaborate code trying to circumvent the issue, but I decided to remove it, since it was quite brittle, and I concluded the issue originates in TScroller and should be fixed at source.
I've updated the ticket title to reflect the source of the problem.
On introducing the horizontal scrollbar adjustment new issues appeared.
I could solve most of them by skipping the Scroller->ShowWindow calls and hiding unnecessary bars by setting the scroll range to zero. The remaining issues are:
If a bar gets activated while the other bar is already visible, its range will be ignored and the maximum range will be applied. Only after resizing the window the bars will be ok.
After the horizontal bar is activated, the scroll range will be too small by approx. two characters. Only after resizing the window the scroller will be ok.