Google for "sender lazarus". One of the first items found is this nice article by Zarko Gajic: https://www.thoughtco.com/understanding-sender-parameter-in-delphi-event-handlers-1058223 (but they have awful code formatting on this page...)