[Lazarus] How to create a non focusable form?
Gabor Boros
gaborboros at yahoo.com
Tue Oct 27 17:07:13 CET 2015
2015.10.27. 16:16 keltezéssel, Zeljko írta:
>
> csNoFocus does not work for Qt ? Can you provide example ?
> For Qt: before example try to include qt4 and qtwidgets into your unit
> and then
> in CreateWnd of your custom form (or after form handle is created)
>
> TQtMainWindow(YourForm.Handle).SetFocusPolicy(QtNoFocus);
> TQtMainWindow(YourForm.Handle).WindowArea.SetFocusPolicy(QtNoFocus);
WindowArea not exist, found ScrollAera which is TQtWindowArea type.
But not have any effect for me. Example attached (without Qt and
WMNCHitTest trick).
Gabor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Form_Focus.tar.gz
Type: application/gzip
Size: 1728 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20151027/52c56fd2/attachment-0001.gz>
More information about the Lazarus
mailing list