[Lazarus] SetFocus have no effect after TCustomForm.Show

Zeljko zeljko at holobit.net
Fri Oct 16 13:41:40 CEST 2015



On 10/16/2015 01:33 PM, Gabor Boros wrote:
> 2015.10.16. 13:14 keltezéssel, Zeljko írta:
>>
>> You can set FormStyle := fsStayOnTop for that popup form so you'll
>> achieve that effect.
>>
>> zeljko
>
> I tried this before wrote to the list but have a side effect. The green
> form showed above all other opened windows (not just form's of current
> application) in the OS with KDE4 and Windows too.

Please try with attached patch. In this case you can test without 
FormStyle := fsStayOnTop. FYI, in this patch I'm setting stayontop for 
X11 so that could make a problem.
Test with this patch and let me know if this is what you want. If not I 
have (maybe) another solution.

zeljko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_popup_fix.diff
Type: text/x-patch
Size: 1871 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20151016/10c197fd/attachment-0003.bin>


More information about the Lazarus mailing list