- Код: Выделить всё
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics,
Dialogs, StdCtrls, EditBtn, ExtCtrls, Grids;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
CheckBox1: TCheckBox;
ComboBox1: TComboBox;
DateEdit1: TDateEdit;
Edit1: TEdit;
LabeledEdit1: TLabeledEdit;
Memo1: TMemo;
procedure Button1Click(Sender: TObject);
procedure ComboBox1Change(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
begin
ComboBox1.Text:='11';
DateEdit1.Date:=Date;
Memo1.Text:='11';
LabeledEdit1.Text:='11';
CheckBox1.Checked:=not CheckBox1.Checked;
Edit1.Text:='11';
end;
procedure TForm1.ComboBox1Change(Sender: TObject);
begin
ShowMessage(Sender.ClassName);
end;
initialization
{$I unit1.lrs}
end.