[futurebasic] Re: [FB] Scrolling lists

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: tedd <tedd@...>
Date: Tue, 18 May 1999 14:15:40 -0400
>I am starting to do alot with STR# lists in my PG project. FN viewlist is a
>handy function for scrolling to and selecting an element in the list.
>Unfortunately it always scrolls just enopugh so the the selected element is
>at the bottom of the field. I want to leave it selected but scroll up 4 or 5
>more elements so I can see what is around that selection. I can't seem to get
>my scrolling list to scroll without selecting a new element. I have tried
>scroll button and call lscroll with no luck.
>What is the proper way to scroll a scrolling list without selecting an
>element (emulate clicking in the scroll bar)?


From memory... I had the same problem. I figured out how many items were in
the scroll window and then divided by two (i.e., 30/2 = 15). I then
selected an item that was 15 up from the item I wanted to show and then
selected the item I wanted to show. Something like:

  FN viewListItem(_alphaList1,foundFirst+15)
  FN viewListItem(_alphaList1,foundFirst)


<mailto:tedd@...>	               http://sperling.com/