Order of events: TEdit / TListBox
Original Reporter info from Mantis: kapibara
-
Reporter name: Roger Olsson
Original Reporter info from Mantis: kapibara
- Reporter name: Roger Olsson
Description:
On Windows, Lazarus and Delphi 7 behave the same. Except that Delphi 7 doesn't have the ListBox.SelectionChange event.
Problem is with Lazarus Linux GTK2. Events behave the opposite to Windows Lazarus and Delphi 7:
-
Edit.Exit fires AFTER ListBox.SelectionChange and ListBox.OnClick if selecting a different ListBox item than the currently selected one. Bad, it should behave like under Lazarus Windows so Edit.Exit fires first, before ListBox.SelectionChange and ListBox.OnClick
-
SelectionChange does not fire when clicking an already selected item. Good, shouldn't the Windows implementation also behave like this?
-
Edit.Exit fires BEFORE ListBox.OnClick if selecting an already selected ListBox item. Good. Same as Lazarus Windows and Delphi 7. Mention it just to point out the inconsistency within the same control.
Lazarus Win platform: Edit.Exit always fires first, before ListBox.OnClick (and OnSelectionChange), no matter if the ListBox item is selected or not. Good. Though I would not expect SelectionChange to fire in this case since there is no change in selection?
Steps to reproduce:
Run demo, click Edit / ListBox
Mantis conversion info:
- Mantis ID: 31900
- OS: Debian
- OS Build: 9
- Platform: Linux
- Version: 1.9 (SVN)
- Fixed in revision: 55062 (#09f9152b)
- Monitored by: » kapibara (Roger Olsson)