Re: [Lazarus] Order of events: TEdit / TListBox

2017-05-23 Thread kapibara via Lazarus
Thanks, https://bugs.freepascal.org/view.php?id=31900 Please open an issue about it and I'll take a look on it. zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Order of events: TEdit / TListBox

2017-05-23 Thread Graeme Geldenhuys via Lazarus
On 2017-05-23 14:27, kapibara via Lazarus wrote: So the behaviour is inconsistent between platforms, and also inconsistent within the same control (TListBox) depending on what item is selected. I believe I have reported that back in 2006 already. If not the same component, then one of the list

Re: [Lazarus] Order of events: TEdit / TListBox

2017-05-23 Thread zeljko via Lazarus
On 05/23/2017 03:27 PM, kapibara via Lazarus wrote: On 05/23/2017 09:18 AM, zeljko wrote: It's normal. If you click onto listbox (OnMouseDown of listbox triggers), TEdit looses focus and triggers OnExit() Thanks for the reply. Yes, on Windows, Lazarus and Delphi 7 behave the same. Except tha

Re: [Lazarus] Order of events: TEdit / TListBox

2017-05-23 Thread kapibara via Lazarus
On 05/23/2017 09:18 AM, zeljko wrote: It's normal. If you click onto listbox (OnMouseDown of listbox triggers), TEdit looses focus and triggers OnExit() Thanks for the reply. Yes, on Windows, Lazarus and Delphi 7 behave the same. Except that Delphi 7 doesn't have the ListBox.SelectionChange

Re: [Lazarus] Order of events: TEdit / TListBox

2017-05-23 Thread zeljko via Lazarus
On 05/23/2017 04:15 AM, kapibara via Lazarus wrote: Some more findings. Under Windows, the Edit.Exit event fires before both SelectionChange and OnClick no matter what item you select. It's normal. If you click onto listbox (OnMouseDown of listbox triggers), TEdit looses focus and triggers OnE

Re: [Lazarus] Order of events: TEdit / TListBox

2017-05-22 Thread kapibara via Lazarus
Some more findings. Under Windows, the Edit.Exit event fires before both SelectionChange and OnClick no matter what item you select. Plus under Windows, SelectionChange fires even though an item might already be selected which it doesn't under Linux GTK2. Under both environments, the Click event

Re: [Lazarus] Order of events: TEdit / TListBox

2017-05-22 Thread kapibara via Lazarus
Showing events. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus