home *** CD-ROM | disk | FTP | other *** search
- unit testunit;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls;
-
- type
- TForm1 = class(TForm)
- Button1: TButton;
- Button2: TButton;
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- procedure ShowHint(Sender: TObject);
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
- procedure TForm1.ShowHint(Sender: TObject);
- begin
- Caption := Application.Hint;
- end;
-
- procedure TForm1.FormCreate(Sender: TObject);
- begin
- Application.OnHint := ShowHint;
- end;
-
- end.
-