Is it possible to determine the position of the thumb control in a grid scrollbar?
I can trap the Scroll event and get the mouse's position to determine an approximate location. But this only works when the thumb is manually moved via the mouse.
A hack would be to use the Form.Point() function to search the length of a scrollbar looking for the edge of the thumb but this seems terribly inefficient and I'm not sure if there's a consistent thumb edge color across different versions of Windows or even different XP themes. (The mouse cursor may also interfere with this approach as well?)
I checked News2News.com for an API solution and couldn't find anything.
Any other ideas? (SYS, SET command, or a FOXTOOLS API?)
Malcolm
I can trap the Scroll event and get the mouse's position to determine an approximate location. But this only works when the thumb is manually moved via the mouse.
A hack would be to use the Form.Point() function to search the length of a scrollbar looking for the edge of the thumb but this seems terribly inefficient and I'm not sure if there's a consistent thumb edge color across different versions of Windows or even different XP themes. (The mouse cursor may also interfere with this approach as well?)
I checked News2News.com for an API solution and couldn't find anything.
Any other ideas? (SYS, SET command, or a FOXTOOLS API?)
Malcolm