[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 384
  • Last Modified:

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...
0
AttarSoftware
Asked:
AttarSoftware
  • 3
  • 2
1 Solution
 
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
 
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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now