home *** CD-ROM | disk | FTP | other *** search
- unit Main;
-
- { Program copyright (c) 1995 by Charles Calvert }
- { Project Name: BUTTONS }
-
- interface
-
- uses
- WinTypes, WinProcs, Classes,
- Graphics, Controls, Forms,
- StdCtrls;
-
- type
- TForm1 = class(TForm)
- Button1: TButton;
- procedure Button1Click(Sender: TObject);
- procedure FlashButtonClick(Sender: TObject);
- private
- FlashButton: TButton;
- MyFont: TFont;
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- FlashButton := TButton.Create(Form1);
- FlashButton.Parent := Form1;
- FlashButton.SetBounds(200, 20, 180, 110);
- FlashButton.Default := True;
- FlashButton.Caption := ' Sam ';
- FlashButton.Font.Name := 'New Times Roman';
- FlashButton.Font.Color := clBlue;
- FlashButton.Font.Size := 46;
- FlashButton.Font.Style := [fsItalic];
- FlashButton.OnClick := FlashButtonClick;
- end;
-
- procedure TForm1.FlashButtonClick(Sender: TObject);
- begin
- MessageBox(Handle, 'Click on Flash Button', 'Info', mb_Ok);
- end;
-
- end.
-