[Gambas-user] ListBox, how to auto-follow last added item.?

Stefano Palmeri rospolosco at ...152...
Fri Jan 26 10:34:41 CET 2007


Alle 23:29, giovedì 25 gennaio 2007, Jose J. Rodriguez ha scritto:
> I can't figure out any way to use the ListBox as a data logger, that
> is to "follow" the last added item and auto scrolling to keep it in
> sight. Is it at all possible? If not, this would be a very useful
> addition to it, IMHO. At least I use this kind of thing a lot in my
> aplications.
> 
> Tried Listbox.Index = Listbox.Count - 1, from something I found
> searching the list, but no luck. Then went over the docs again,
> searched on the Forums, etc, and tried a lot of possibles and even
> some not so likely looking methods.... :(
> 
> Regards,
> Joe1962
> 

Hi. The only way seems to be adding the last item on top of the listbox.
Try the attached example (Gambas 1.9.47)

Ciao.

> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: listadd-0.0.1.tar.gz
Type: application/x-tgz
Size: 4404 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20070126/8b97efb7/attachment.bin>


More information about the User mailing list