Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2019-04

Problem with Order of Events

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Grajcar

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>

Reply by email