[Lazarus] TCustomControl focus handling difference

Gabor Boros gaborboros at yahoo.com
Mon Oct 19 14:56:46 CEST 2015


2015.10.19. 14:40 keltezéssel, Zeljko írta:
> Probably platform diff. Qt have mechanism to dissalow focus switch via
> mouse but I could not find any in LCL. Try with gtk2.

If modify the example...

   with TMyControl.Create(Self) do
    begin
      ControlStyle:=ControlStyle+[csNoFocus];

...Edit1 not loose the focus on green control click just the text selection.

Gabor




More information about the Lazarus mailing list