home *** CD-ROM | disk | FTP | other *** search
- unit Main;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, CaptBtn, Dialogs, StdCtrls, ShellAPI;
-
- type
- TForm1 = class(TForm)
- CaptionButton2: TCaptionButton;
- CaptionButton1: TCaptionButton;
- Label1: TLabel;
- Label2: TLabel;
- Label3: TLabel;
- Label4: TLabel;
- ColorDialog: TColorDialog;
- procedure CaptionButtonClick(Sender: TObject);
- procedure CaptionButton1Click(Sender: TObject);
- procedure CaptionButton2Click(Sender: TObject);
- private
- public
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.CaptionButtonClick(Sender: TObject);
- begin
- MessageDlg('Click',mterror,[mbok],0);
- end;
-
- procedure TForm1.CaptionButton1Click(Sender: TObject);
- begin
- ColorDialog.Color := Label1.Font.Color;
- if ColorDialog.Execute then
- begin
- Label1.Font.Color := ColorDialog.Color;
- Label2.Font.Color := ColorDialog.Color;
- Label3.Font.Color := ColorDialog.Color;
- end;
- end;
-
- procedure TForm1.CaptionButton2Click(Sender: TObject);
- begin
- ShellExecute(GetDesktopWindow, 'open', 'mailto:xacker@phreaker.net?subject=Caption Button',
- nil, nil, sw_ShowNormal);
- end;
-
- end.
-