procedure TForm1.Button1Click(Sender:TObject);
begin
    TButton(Sender).Color := clLime;
end;

Then assign the same Button1Click to all buttons OnClick event.

Regards,
Ross.

----- Original Message ----- 
From: "websmith" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, June 09, 2005 4:26 AM
Subject: buttons property


allo,

is there another way to access the button's property as the basic one 
used
is as follows :-

procedure TForm1.Button1Click(Sender:TObject);
begin
    Button1.Color := clLime;
end;

but will need to duplicate that line into many buttons. Therefore do not
wish to use that Button1 prefix.
is it possible.???

ciao
daniel lee.org/mailman/listinfo/delphi 


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to