views:

19

answers:

0

I would like to control the viewed data based on the position of the scrollbar. If the scrollbar thumb is at the bottom, then when data is appended to the view the view should move with the added data. However, if the scrollbar thumb is positioned somewhere else, I want the view to stay fixed at that spot . . . I understand things change when the thumb is at the top and data is deleted.

Currently is I append data to wxListBox the data is lost from view as more data is added. Is there any control of the scrollbar so that I can force it to the bottom if the scrollbar was at the bottom before the append? Is there a better container to use for a list that enables a single selection?