10-09-2009 08:23 AM
Hi All,
I want to to make listbox to scroll auotmatically as list iems are added continuously means if i add one list item it should become active and if i add second item it should become active and list box should scroll automatically to last element.I should be able to see that scrolling in UI.
I need this functionality to know at this point of time i am on which line in the list box.Please help me in this regard.
Thanks,
Harika
10-09-2009 08:30 AM
I am not aware of a way to operate automatically this way: when I need such a functionality I simply add some line to my code:
InsertListItem (panel, control, -1, "text", value);
GetNumListItems (panel, control, &numItems);
SetCtrlIndex (panel, control, numitems - 1);
ProcessDrawEvents (); // Optional, in case you do not process events other way in the code
10-09-2009 08:40 AM
Hi Robert,
I am using same way in my code. But what happening is : i am able to see the contents of the listbox only after inserting all the items.
For example, if i want to insert 100 items, list box is empty till all the 100 items are inserted.I am not able to see the listbox update for each item.After inserting 100 items,i am able to see the items.
whether i need to set any attributes????
Thanks,
Harika
10-09-2009 08:49 AM