S
skeptic23
I have a list box that shows files from my hard drive. I'd really like to
have it select the item being pointed to as I move my mouse pointer over it.
I have coded this and it works fine unless the list is scrolled. I need a
way to offset my list index to account for how far down the list has been
scrolled.
I can't find a list box property that will allow me to determine where a
scrolled list is positioned. Something giving me the list index of the first
visible row would do the trick. I haven't been able to find anything so far.
I've tried some VB code that uses the SendMessage API to extend the style of
the list box to do exactly what I'm after (point-to-select), but it doesn't
work. I think I'm running into the fact that Access list box controlss don't
have .hWnd properties to identify them to the API.
Any clever ideas out there?
Another nice feature that depends on point-to-select capability is displaying
tool tips specific to a selected row. See
http://www.codeguru.com/vb/controls/vb_listbox/article.php/c2767/
Thanks!
have it select the item being pointed to as I move my mouse pointer over it.
I have coded this and it works fine unless the list is scrolled. I need a
way to offset my list index to account for how far down the list has been
scrolled.
I can't find a list box property that will allow me to determine where a
scrolled list is positioned. Something giving me the list index of the first
visible row would do the trick. I haven't been able to find anything so far.
I've tried some VB code that uses the SendMessage API to extend the style of
the list box to do exactly what I'm after (point-to-select), but it doesn't
work. I think I'm running into the fact that Access list box controlss don't
have .hWnd properties to identify them to the API.
Any clever ideas out there?
Another nice feature that depends on point-to-select capability is displaying
tool tips specific to a selected row. See
http://www.codeguru.com/vb/controls/vb_listbox/article.php/c2767/
Thanks!