Listbox.Setfocus when scrolling

Hi, I hope this works, as I cannot see the text....hmmmmm...

Is there a way to detect that a listbox is scrolling via the scrollbars (preferably without writing my own component)?

Basically, I need the listbox to set focus when someone scrolls it...
LVL 1
AttarSoftwareAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AttarSoftwareAuthor Commented:
Cool, my typing from memory skills are improving...  Does everyone else get a ridiculously tiny edit box to enter their questions in, or is it just a vendetta against me?

Your paranoidaly

Tim.
0
LischkeCommented:
Mmh, I think writing an own component is the easiest way as you have to capture WM_VSCROLL and WM_HSCROLL messages. You can also hook into the window procedure of the listbox but this is rather hard stuff just to set the focus...

Ciao, Mike
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AttarSoftwareAuthor Commented:
Cheers Mike...

Oh well, I guess I will have to try that then...

Such a lot of work, for such little functionality...

Tim.

(PS: Thanks again) ;O)

PPS: Sorry if this is really hard to read, but I still can't see what I am typing...  I guess this NT server needs rebooting...  

*wave*
0
AttarSoftwareAuthor Commented:
Heh, and I'll give ya the points (as you did suggest another way to do it) ;O)  Byeeee...

Tim.
0
LischkeCommented:
Thank you.... :-)

Ciao, Mike
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.