Delphi 2009 之 TBalloonHint


本文整理自网络,侵删。

 




代码文件:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ImgList;

type
  TForm1 = class(TForm)
    BalloonHint1: TBalloonHint;
    Button1: TButton;
    Edit1: TEdit;
    ImageList1: TImageList;
    procedure FormCreate(Sender: TObject);
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
  Button1.CustomHint := BalloonHint1;
  Edit1.CustomHint := BalloonHint1;

  BalloonHint1.Images := ImageList1;

  Button1.ShowHint := True;
  Edit1.ShowHint := True;

  Button1.Hint := '提示:|这是 Button1 的 Hint|0';  {标题|内容|ImageList 中的图像序号}
  Edit1.Hint := '敬告:|这是 Edit1 的 Hint|1';  
end;

end.

相关阅读 >>

Delphi基于prewitte算子的图像边缘检测

Delphi 简单播放mp3

Delphi winapi: extracticon - 获取 exe、dll 或 ico 文件中的图标

Delphi 标题栏相关操作

Delphi tpath.combine(); {结合路径}

Delphi 如何将access数据库后缀名accdb改为mdb

Delphi tstrings 随机打乱

Delphi idftp连接

Delphi 如何遍历整个硬盘的各个目录,就像windows的查找功能那样

Delphi tdictionary使用范例

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...