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 -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus