[Lazarus] Problem with Order of Events

Martin Grajcar maaartinus at gmail.com
Wed Apr 17 22:50:42 CEST 2019


Some time ago. the fix for 0031900: Order of events: TEdit / TListBox
<https://bugs.freepascal.org/view.php?id=31900> broke a component of mine.
I think that the fix does the right thing, however, I don't know how to
work around it. My component is composed from an ancestor
of TMyComboListbox and some other components.

In TMyComboListbox.MouseDown, I call ItemAtPos (Point (X, Y), TRUE). This
used to work perfectly, but after 31900, WMKillFocus on another component
gets called *before* mouse down. Unfortunately, on kill focus, I close the
list box. I guess, I need to do the closing in reaction to some other
event, but which one? I need that it gets closed on any click outside of my
*composed* component.

Regards, Martin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20190417/2ad64ad1/attachment.html>


More information about the lazarus mailing list