Re: [Lazarus] I can't exit this component

2024-03-30 Thread Marc Weustink via lazarus
The onenter is indeed fired when the control gets focus. However if you show a dialog in that event, the control loses focus and gets it again when the dialog is closed, resulting in a loop. In general it is bad coding to have much logic in onenter/onleave events I once was confronted with an

Re: [Lazarus] I can't exit this component

2024-03-30 Thread Arí Ricardo Ody via lazarus
I was thinking that OnEnter would refer to receiving focus. If it responds to mouse movement then it is explained. I changed the logic to use the OnClick event in the component. Then it worked. I see now that it was a lack of knowledge on my part. Thank you very much. On Fri, Mar 29, 2024 at

Re: [Lazarus] I can't exit this component

2024-03-30 Thread Arí Ricardo Ody via lazarus
I gave up using "OnEnter". Apparently this doesn't work right. I switched to using the "OnClick" event. Thank you for your help. Greetings from São Paulo - Brazil On Fri, Mar 29, 2024 at 8:52 AM Alexey T. via lazarus < lazarus@lists.lazarus-ide.org> wrote: > When something like this happens, do