Dear all,
I am designing an address book using the LISBOX widget, to make the entries visible I use a large font so no more than seven entries can be displayed; but the address book entries can be much more than seven so I set a LISTBOX_IncSel() reaction to the pressure of the down arrow button I have on the board and LISTBOX_DecSel() to the pressure of the up arrow button; correspondingly I see the items scrolling on the display, each time a new entry appears at the bottom the first entry disappears at the top, so everything looks fine.
My problem is the following: when I reach the last but one item, so the last but one is the selected item and there is the last item in the last visible position, and I press once again the down arrow button I still have a scrolling operation and all the items go up, hence I have the last entry in the last but one position and a blank entry in the last position.
I attach a simple diagram to illustrate the concept.
What I would like to avoid is the last scrolling, that makes visible the blank entry.
Thanks,
Ezio
I am designing an address book using the LISBOX widget, to make the entries visible I use a large font so no more than seven entries can be displayed; but the address book entries can be much more than seven so I set a LISTBOX_IncSel() reaction to the pressure of the down arrow button I have on the board and LISTBOX_DecSel() to the pressure of the up arrow button; correspondingly I see the items scrolling on the display, each time a new entry appears at the bottom the first entry disappears at the top, so everything looks fine.
My problem is the following: when I reach the last but one item, so the last but one is the selected item and there is the last item in the last visible position, and I press once again the down arrow button I still have a scrolling operation and all the items go up, hence I have the last entry in the last but one position and a blank entry in the last position.
I attach a simple diagram to illustrate the concept.
What I would like to avoid is the last scrolling, that makes visible the blank entry.
Thanks,
Ezio
The post was edited 1 time, last by ezio_noventa ().