Apparently, by 'activate TButton' you probably mean 'Button clicked' (i.e. when the user click the pushbutton with mouse or keyboard).
In this case, use the 'OnClick' event of your pushbutton to insert your code. Or just double-click on the concerned pushbutton in the Lazarus IDE: the concerned event/procedure will be proposed to you automatically (it's the "by-default" event for a pushbutton).
For instance, for a form (Form1) with a edit control (Edit1) and a pushbutton (Button1), this gives:
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
procedure Button1Click(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
begin
Edit1.Enabled := False;;
end;
end.