highlight a listbox item on mouse enter
Posted: Sun Dec 13, 2009 14:56
I was looking for a way to to highlight a listbox item when the mouse pointer is over it.
I actually found a way to do so by using the following work-around:
- set the selection brush to hihlight my listbox item doing so: setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush");
- catch the mouse move event of the listbox
- in the mouse move function, find the item currently under the mouse pointer and select it manually
However there is one problem with this way of doing things: the method "getItemAtPoint" I would need from the listbox is currently protected.
So my question is:
Is there a better way to do what I am trying to? Or if not, would it be possible to set the method "getItemAtPoint" to public?
Thanks,
Rincevent
I actually found a way to do so by using the following work-around:
- set the selection brush to hihlight my listbox item doing so: setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush");
- catch the mouse move event of the listbox
- in the mouse move function, find the item currently under the mouse pointer and select it manually
However there is one problem with this way of doing things: the method "getItemAtPoint" I would need from the listbox is currently protected.
So my question is:
Is there a better way to do what I am trying to? Or if not, would it be possible to set the method "getItemAtPoint" to public?
Thanks,
Rincevent