Hi Torsten, Every form have an ActiveControl. Only the ActiveControl of the ActiveForm get focus.. when the application is active.
2015-01-16 13:16 GMT+02:00 Torsten Bonde Christiansen <[email protected]>: > Hi. > > In a single form application, is it always the case that > TForm.ActiveControl = "Focused Control" ? > > Eg. if I somewhere in my coded has: > > ... > SomeWinControl.SetFocus; > ... > > And the later do a check: > > ... > if (MainForm.ActiveControl = SomeWinControl) then > ... > > will the above if statement be true (considering focus hasn't changed)? > > Kind regards, > Torsten. > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- Alexandrov Alexandru, tel. 0732-378-682 tel. 0743-586-614
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
