Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

Welcome, Guest
Guest Settings

Thread: Coordinating mouse wheel and scroll bar in TStringGrid

This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Permlink Replies: 0
Harry Kloppert

Posts: 16
Registered: 12/15/08
Coordinating mouse wheel and scroll bar in TStringGrid  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 11, 2016 4:12 AM
When I SCROLL to a certain position in a StringGrid with the vertical scroll bar and THEN use the mouse wheel to go further, the current position always goes back to where the last scroll operation started (plus one for the mouse wheel operation).
E.g. When I start the TopRow is 0
Now I click into the scrollbar which moves the TopRow to last visible row, let's say 10
Now I turn the mouse wheel down one position -> the TopRow becomes 0 + 1 = 1

Any idea of coordinating both scroll operations?

C++ Builder XE6
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02