[Lazarus] How to create a non focusable form?

Zeljko zeljko at holobit.net
Wed Oct 28 13:35:04 CET 2015



On 10/28/2015 01:06 PM, Gabor Boros wrote:
> 2015.10.28. 11:51 keltezéssel, Zeljko írta:
>> Ok, then go to QtWSForms, TQtWSCustomForms.UpdateWindowFlags and comment
>> if csNoStdEvents ..... leave only
>> Flags := Flags or QtX11BypassWindowManagerHint;
>>
>> in this case form will not take focus in any case, but must see what
>> happens with parenting (button is not visible because of this param I
>> guess).
>
> Commented out "if csNoStdEvents..." line. Button not visible on form
> with out without csNoStdEvents in ControlStyle.

Yes, QtX11BypassWindowManagerHint does strange things and that's not 
documented in Qt :(
Really don't know how to achive that goal under X11. Tried pure Qt 
application and have same problem. Shown form does not activate and 
that's fine, but when I click on it then it activates :(

zeljko




More information about the Lazarus mailing list