Abort method lazarus / 31-LCL ---------------------------------------------------------------------- k1attila1 · 2014-11-14 07:57 Hello There is 2 pieces of TEdit component on a form. If i place only one Abort method to the onExit eventhandler of Edit1 and push TAB button i can prevent to move the focus to the next (Edit2) component. like this : (delphi) procedure TForm1.Edit1Exit(Sender: TObject); begin  Abort; end; But in Lazarus it doesn't work, the focus move to the next (Edit2) component. How does About method work in Lazarus ? Many thanks in advance ---------------------------------------------------------------------- Blaazen · 2014-11-14 08:09 Try to set the second edit TabStop:=False; and instead of Abort: Code: [Select]procedure TForm1.Edit1Exit(Sender: TObject); begin   Edit1.SetFocus; end; ---------------------------------------------------------------------- k1attila1 · 2014-11-14 08:14 thanks maybe it's a workaround and works well in this situation but i don't understand the operation of Abort method what is the difference between delphi and lazarus abort method ? ---------------------------------------------------------------------- Blaazen · 2014-11-14 08:27 I don't know what version of Delphi you have, I tested in Delphi7 under Wine and Abort; doesn't work there. I'm a long time on this forum and frankly, this is the first time I hear about Abort;. Usually, combination of TabStop, ReadOnly and Enabled properties is enough. EDIT: It seems that Abort; is designed for pascal program rather than for Lazarus applications. If it works in some Delphi version for canceling focus, then it is more or less coincidence. ---------------------------------------------------------------------- k1attila1 · 2014-11-14 08:36 Thanks I tested it in Delphi Xe6, but i will test it in delphi 7 (but i have to install that version) but here i started an another topic in Database section http://forum.lazarus.freepascal.org/index.php/topic,26453.0.html and in OnValidate how can i solve this problem, there i can't use tabstop or another solution many thanks