On Sun, Dec 6, 2020 at 1:22 PM frans via lazarus < lazarus@lists.lazarus-ide.org> wrote:
> ActiveControl and lastActiveControl always point to the same control. > > Is this a bug or is my understanding of lastActiveControl wrong? > That is how it is implemented. It is set to ActiveControl unless ActiveControl is Nil or a TCustomForm. if (FActiveControl<>nil) and not (FActiveControl is TCustomForm) then FLastActiveControl := FActiveControl; I did not know about LastActiveControl. What is the use of it? TScreen class seems to have it, too. Anyway, you can easily keep track of the previous ActiveControl in your code yourself. Regards, Juha
-- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus