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监控文件夹

Delphi 取得ie下面输入框内容

delph hash类

Delphi setcursorpos函数在窗口上定位鼠标坐标

Delphi异常死亡进程的自动复活

Delphi 清空dbgrd和stringgrid

Delphi dll注入x86/x64/win2k~win8.1全可用

Delphi 抓屏技巧

Delphi showmainform := false 失效的解决办法

Delphi删除目录及子目录及所有目录下的文件

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



打赏

取消

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

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

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

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

评论

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