TListBox does not respect ItemIndex = -1 on Linux/GTK2
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
When you have a TListBox on a form, with some items, and you set ItemIndex := -1 (in OI), then at startup of the program the first entry in the listbox is selected and Itemindex = 0. Also a OnSelectionChange is fired (with User = True).
On win32 and Linux/QT this is not the case.
Steps to reproduce:
Unzip attached lb.zip project.
Build for GTK2.
Run.
At startup you see:
- in console: TForm1.ListBox1SelectionChange: User = TRUE
- first item is selected
- click on button "Itemindex?": it says "Ïtemindex = 0"
Mantis conversion info:
- Mantis ID: 27276
- OS: Linux
- OS Build: Fedora Core 18
- Build: r47325
- Platform: i386
- Version: 1.3 (SVN)
- Fixed in revision: 47330 (#5b715315)
- Monitored by: » luizamerico (Luiz Americo)