procedure TForm1.Label1Click(Sender: TObject); begin Flag:=true;//флаг глобальная переменная end;
if flag then ........