[PATCH] Fix: Mac / Carbon: TListBox.SetItemIndex does not scroll item into view
Original Reporter info from Mantis: s.kopf
-
Reporter name: Stefan Kopf
Original Reporter info from Mantis: s.kopf
- Reporter name: Stefan Kopf
Description:
When setting TListBox.ItemIndex to a value outside the current view, then Win32 Widgetset scrolls the view to show the newly selected item.
The Carbon Widgetset does not. This patch fixes this problem.
Steps to reproduce:
On Mac/Carbon:
- Add a TListBox to a TForm
- Add more lines to the TListBox than can be displayed
- Add a button to the TForm, which sets TListBox.ItemIndex to the last element
- Run the application and press the button
Expected:
The last item is selected and the listbox has scrolled to show this element
However:
The last element is not visible.
Mantis conversion info:
- Mantis ID: 31013
- OS: OS-X
- Platform: Carbon
- Version: 1.6
- Fixed in revision: r54566 (#705ec489)