onExit function get name of component that called it
Posted on 2006-07-12
I'm building a funtion for when my user exits an editbox I want this same function to be called for all of my editboxes. This is probably easy to do but I don't know how to get the name of the component that's calling the function. So if I exit editbox1 how do I get editbox1's name in my procedure.
procedure TForm1.EditFieldExit(Sender: TObject);
//figure out which edit box called this function
//change properties of that specific editbox ie Color