New topic: [Solved] - Using scrollto in listbox
<http://forums.realsoftware.com/viewtopic.php?t=47984> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message newyorkpaulie Post subject: [Solved] - Using scrollto in listboxPosted: Sun May 26, 2013 4:45 pm Joined: Sat Dec 30, 2006 6:52 pm Posts: 121 Location: New York City I have a few programs that use listboxes. What is the coding for getting the listbox to go to the last entry (bottom) using scrollto. Or is that not the way to do it? In my programs I am using this to populate the box (in one of my programs): dim f as folderitem dim b as binarystream dim count,i as integer f=getFolderItem("/home/paulie/Documents/WeightList") if f<> nil then myListBox.deleteAllRows b=f.openasbinaryfile(false) count=b.ReadLong for i=1 to count myListBox.addrow b.readpstring next b.close end if I found this: "myListBox.ScrollPosition=myListBox.ListCount-1" and added it to the above with success. Sorry, to not find this on my own sooner... but I have the day off and had time after I posted the question. Last edited by newyorkpaulie on Sun May 26, 2013 5:14 pm, edited 1 time in total. Top timhare Post subject: Re: Using scrollto in listboxPosted: Sun May 26, 2013 5:13 pm Joined: Fri Jan 06, 2006 3:21 pm Posts: 12375 Location: Portland, OR USA ScrollTo is part of the WebListbox. For a desktop Listbox, set ScrollPosition. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
