[Lazarus] focus vs. parent changing
u-boot
myabos at t-online.de
Mon Jan 24 17:49:17 CET 2011
Same question here as in irc nobody answered it a few hours ago.
I tried the following lines. It does not work with setfocus before
parent changing.
My question is, if it should work in this order or if this is correct
behaviour.
procedure TForm1.Button1Click(Sender: TObject);
begin
edit1.SetFocus;
if (Edit1.Parent=Panel2) Then Edit1.Parent:=Panel1 else
Edit1.Parent:=Panel2;
end;
More information about the Lazarus
mailing list