Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Misc > Listbox scroll ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 6033 of 6098
Post > Topic >>

Listbox scroll position.

by Dodgy <Dodgy@[EMAIL PROTECTED] > Apr 3, 2008 at 10:15 AM

Is there anyway of finding/setting the current scrolled position of a
listbox?

I have an app which has a long listbox, people scroll up and down it
all the time (please note they are scrolling using the scroll bar
*not* by changing the selected item in the listbox with cursor keys or
anything like that. The selected item often remains as 0 during the
entire runtime).

My app frequently updates the contents of the items, and this always
results in the listbox auto-scrolling itself to show the currently
selected item (i.e. back to the top).

I'd like to get it to stay where it is! I'm not adding any items to
the list, once populated on creation, it's length never changes, but I
would like to be able to change the contents of item[x] and have it
stay on whatever scroll position it was in before, which may or more
not be a scroll window which includes the item I just created or the
selected item.

Ta

Dodgy.
-- 
MUSHROOMS ARE THE OPIATE OF THE MOOSES
 




 2 Posts in Topic:
Listbox scroll position.
Dodgy <Dodgy@[EMAIL PR  2008-04-03 10:15:56 
Re: Listbox scroll position.
"Chris.Cheney"   2008-04-03 13:14:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 6:25:26 CDT 2008.