R
Rudeseal
Hello,
I have a one column combobox on my form that I populate with the filenames
of photo's that are located in a directory on the harddrive.
What I am trying to do is when the dropdown list is open and you move the
mouse down the list, I want the text that is highlighted under the mouse to
be used to provide an image control with a "Preview" of the picture. This is
without clicking the mouse to select it.
I can do the same thing with using the mouse to open the dropdown list, then
use the up arrow and down arrow keys to cycle through the dropdown list which
then changes the text in the combobox's displayed text field and then fires
the "Change" event along with the keydown event. In the change event I have
code that uses the Combobox's text field to provide the image control the
name of the photo I want to preview.
I want to duplicate this action without having to use the keyboard itself,
simply use the mouse to highlight the record and see the preview image on the
form.
Moving the mouse up and down the dropdown list does not fire any events that
I can see, but it is actively highlighting each row of the dropdown list, so
I know the control knows which record is there so when a "Mouse-Down" event
happens or an "enter" is keyed, the text in the row is transferred to the
combobox text field.
I have tried everything I can to pull the text data of the row in the
dropdown list, but have failed. I know that when you are in the Mouseover
event, and you move the mouse from one highlighted record to another
highlighted record, the mousemove event is triggered only once and not
multiple times depending on the resolution of the mouse. In otherwords, when
the highlight changes from one record to another, not only does the highlight
move to the new record under the mouse, but mousemove is triggered.
Is there an API or something that can pull the record text from under the
mouse and duplicate what the up/down arrows on the keyboard are doing with
the combobox dropdown list?
I have a one column combobox on my form that I populate with the filenames
of photo's that are located in a directory on the harddrive.
What I am trying to do is when the dropdown list is open and you move the
mouse down the list, I want the text that is highlighted under the mouse to
be used to provide an image control with a "Preview" of the picture. This is
without clicking the mouse to select it.
I can do the same thing with using the mouse to open the dropdown list, then
use the up arrow and down arrow keys to cycle through the dropdown list which
then changes the text in the combobox's displayed text field and then fires
the "Change" event along with the keydown event. In the change event I have
code that uses the Combobox's text field to provide the image control the
name of the photo I want to preview.
I want to duplicate this action without having to use the keyboard itself,
simply use the mouse to highlight the record and see the preview image on the
form.
Moving the mouse up and down the dropdown list does not fire any events that
I can see, but it is actively highlighting each row of the dropdown list, so
I know the control knows which record is there so when a "Mouse-Down" event
happens or an "enter" is keyed, the text in the row is transferred to the
combobox text field.
I have tried everything I can to pull the text data of the row in the
dropdown list, but have failed. I know that when you are in the Mouseover
event, and you move the mouse from one highlighted record to another
highlighted record, the mousemove event is triggered only once and not
multiple times depending on the resolution of the mouse. In otherwords, when
the highlight changes from one record to another, not only does the highlight
move to the new record under the mouse, but mousemove is triggered.
Is there an API or something that can pull the record text from under the
mouse and duplicate what the up/down arrows on the keyboard are doing with
the combobox dropdown list?