G
Guest
On one of my forms, I would like to display listbox (need to display multiple
fields at all times) which only displays one row of data when it is not
selected. I have figured out how to do some of this, but not all.
I have got/lost focus events that change the height of the list, but if the
lengthened list overlaps another control, it doesn't display properly. I've
tried repainting the controls, but that does not work. I can hide the
control that gets overlapped, but what I would really like to do is make the
overlap work without doing this. Any ideas?
When the user selects one of the items, the cursor moves to the next
control, and the list shrinks to display only the header and one row, but the
row displayed is not necessarily the row that was selected. How do you force
the one row that is visible to display the item that is selected?
I also tried just displaying a single row. This works when the user uses
the cursor keys to scroll thru the list, but when they use the up and down
buttons from the scroll bar, it changes the record that is visible in the
list, but not the selection. Using this technique, is there a way, using the
lost focus, to determine which record is visible in the list?
fields at all times) which only displays one row of data when it is not
selected. I have figured out how to do some of this, but not all.
I have got/lost focus events that change the height of the list, but if the
lengthened list overlaps another control, it doesn't display properly. I've
tried repainting the controls, but that does not work. I can hide the
control that gets overlapped, but what I would really like to do is make the
overlap work without doing this. Any ideas?
When the user selects one of the items, the cursor moves to the next
control, and the list shrinks to display only the header and one row, but the
row displayed is not necessarily the row that was selected. How do you force
the one row that is visible to display the item that is selected?
I also tried just displaying a single row. This works when the user uses
the cursor keys to scroll thru the list, but when they use the up and down
buttons from the scroll bar, it changes the record that is visible in the
list, but not the selection. Using this technique, is there a way, using the
lost focus, to determine which record is visible in the list?