[Lazarus] How to create a non focusable form?

Ondrej Pokorny lazarus at kluug.net
Tue Oct 27 16:11:22 CET 2015


On 27.10.2015 16:04, Gabor Boros wrote:
> Hi All,
>
> I want to create a borderless non modal form (native Windows and 
> Linux-Qt) which not catch the focus on mouse click. Tried with 
> modified ControlStyle and CanFocus override but without success. Any 
> other idea?

IIRC you can use THintWindow as ancestor. See particularly 
THintWindow.WMNCHitTest that does the job.

Ondrej




More information about the Lazarus mailing list