文档章节

Delphi 2009 之 TBalloonHint

涂孟超
 涂孟超
发布于 2014/09/26 15:35
字数 329
阅读 34
收藏 0
本例相关图片:





代码文件:
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.

 
 
 
 
 

 

 

  
窗体文件:
object Form1: TForm1
  Left = 0
  Top = 0
  Caption = 'Form1'
  ClientHeight = 127
  ClientWidth = 215
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'Tahoma'
  Font.Style = []
  OldCreateOrder = False
  OnCreate = FormCreate
  PixelsPerInch = 96
  TextHeight = 13
  object Button1: TButton
    Left = 32
    Top = 32
    Width = 75
    Height = 25
    Caption = 'Button1'
    TabOrder = 0
  end
  object Edit1: TEdit
    Left = 32
    Top = 80
    Width = 121
    Height = 21
    TabOrder = 1
    Text = 'Edit1'
  end
  object BalloonHint1: TBalloonHint
    Left = 161
    Top = 24
  end
  object ImageList1: TImageList
    Left = 161
    Top = 72
    Bitmap = {
      494C010102000400040010001000FFFFFFFFFF00FFFFFFFFFFFFFFFF424D3600
      0000000000003600000028000000400000001000000001002000000000000010
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000861A50094A6B5000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000000000009CAECE002979
      E7000061EF000059EF000049EF000049EF000059EF000059EF0094AED6000000
      00000000000000000000000000000861A5000000000000000000000000000000
      000000000000000000000000000000000000C66D1800BD550800BD5508000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000000000005AA6DE00219EFF0031A6
      FF004AB6FF0042AEFF0042AEFF004AB6FF0073D7FF0073D7FF000061EF000000
      0000000000000861A50094AEB500000000000000000000000000000000000000
      0000000000000000000000000000BD550800FFA23900EF8A2900FFCF9C00D66D
      1800000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000000000000086E70073CFFF0073CF
      FF006BC7FF0063C7FF0052B6FF00298EF7000061EF000061EF000069EF009CB6
      D60000000000000000000861A500000000000000000000000000000000000000
      00000000000000000000BD5D1000FFAE5A00FFB25A00EF7D1800FFDBBD00D66D
      18000000000000000000EF9A4200000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000000000000086E7007BD7FF007BD7
      FF007BD7FF0073D7FF0073D7FF007BD7FF008CDFFF008CDFFF009CE7FF000079
      EF00000000000000000000000000000000000000000000000000000000000000
      000000000000C6611000FFBA6B00FFBA7300FFBA7300F77D0800FFDBBD00D66D
      180000000000EF9A420000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000008EE7008CDFFF008CDF
      FF008CDFFF008CDFFF0073C7FF00399EF7000071EF000071EF000079EF000079
      E700000000000000000000000000000000000000000000000000BD5D1000BD5D
      1000BD5D1000FFC37B00FFC78400FFCB8C00FFCB8C00FF7D0000FFE3CE00DE75
      2100000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000008EE70094E7FF0094E7
      FF009CE7FF009CE7FF009CE7FF009CE7FF00A5EFFF00A5EFFF00ADF7FF000086
      EF000000000000000000000000000000000000000000C6611000E78A4A00FFAE
      7B00FF963100FFCF9400FFD39C00FFDBB500FFDBBD00FF8A1000FFF3E700DE75
      2100000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000000000000086E7009CEFFF009CEF
      FF00A5EFFF00A5EFFF008CD7FF0039A6F700008EE700008EE700008EEF00008E
      E700008EE7000096E7000096E7009CC7DE0000000000D66D1800FFD3B500FFDF
      CE00FFA65200FFDBB500FFEFDE00FFF7EF00FFF7EF00FF922100FFFBF700DE79
      210000000000EF9A4200EF9A4200000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000000000003996E70073CFFF008CE7
      FF00A5F7FF00ADF7FF00ADF7FF00ADF7FF00ADF7FF00ADF7FF00ADF7FF00ADF7
      FF00ADF7FF00ADF7FF00ADF7FF000096E70000000000D66D1800FFFFFF00FFFF
      FF00FFB67300FFFFFF00FFFFFF00FFFFFF00FFFFFF00FF9E3100FFFFFF00DE79
      210000000000EF9A4200EF9A4200000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000CED7DE003196EF002986
      DE0063C7FF00ADF7FF0063C7FF00109EEF000096E7000096E7000096E7000096
      E7000096E7000096E7000096E7009CCFE70000000000E7752100EFAE8400FFFF
      FF00FFDBBD00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFA64200FFFFFF00E77D
      2100000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000000000000000000000000000B5C7
      DE00108EE700ADF7FF006BCFFF0052AEE7000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000E77D2100E77D
      2100EF862900FFEFDE00FFFFFF00FFFFFF00FFFFFF00FFB24A00FFFFFF00E77D
      2100000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000052AEE70042B6F7009CE7FF00189EE7000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000E77D2100FFF7EF00FFFFFF00FFFFFF00FFBA5A00FFFFFF00E782
      290000000000EF9A420000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000C6DFE700008EE700ADF7FF000096E7000000000000000000000000000000
      00000861A5000000000000000000000000000000000000000000000000000000
      00000000000000000000E77D2100FFF3E700FFFBF700FFBE6300FFFFFF00EF86
      29000000000000000000EF9A4200000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000096E700ADF7FF000096E7000000000000000000000000000861
      A500ADBED600000000000861A500000000000000000000000000000000000000
      0000000000000000000000000000E77D2100FFF7EF00FFC76B00FFFFFF00EF86
      2900000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000009CCFEF000096E7009CCFEF000000000000000000000000000000
      0000000000000861A500ADC7D600000000000000000000000000000000000000
      000000000000000000000000000000000000E78E3900E77D2100E77D21000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000424D3E000000000000003E000000
      2800000040000000100000000100010000000000800000000000000000000000
      000000000000000000000000FFFFFF00FFFCFFFF00000000C01EFF1F00000000
      8019FE0F00000000800DFC0D00000000800FF80B00000000800FC00F00000000
      800F800F00000000800080090000000080008009000000008000800F00000000
      E0FFC00F00000000F0FFF80B00000000F0F7FC0D00000000F8E5FE0F00000000
      F8F9FF1F00000000FFFFFFFF00000000}
  end
end

 
 
 
 
 

 

 

  

本文转载自:http://www.cnblogs.com/del/archive/2008/08/14/1267834.html

共有 人打赏支持
涂孟超
粉丝 12
博文 2011
码字总数 14107
作品 0
深圳
程序员
GO 语言 UI 组件库 - govcl

由于现有第三方的Go UI库不是太大就是用的不习惯,或者组件太少。就萌生了自己写一个UI库的想法Delphi(Lazarus)有些许多优秀的VCL(LCL)组件,不拿来使用太可惜了。所以就索性做了一套。目前支...

不在乎y
2017/10/10
6.9K
17
delphi各个版本编译开关值

delphi各个版本编译开关值 {$IFDEF VER80} - Delphi 1 {$IFDEF VER90} - Delphi 2 {$IFDEF VER100} - Delphi 3 {$IFDEF VER120} - Delphi 4 {$IFDEF VER130} - Delphi 5 {$IFDEF VER140} - D......

伽罗kapple
2016/03/01
10
0
推荐Pascal-Delphi、软件工程;数据库开发 一些编程书

HTF 阅读器下载 IT技术 注意:下面的RAR文件名是网页链接,不RAR源文档,如果弹出下载软件,请单击右键打开新页面再下载。 Pascal-Delphi更新日期:2009-12-514:45:59 总数:12 订阅RSS 《D...

jfyes
2009/12/05
0
0
Delphi 的编译指令(2): 条件语句的更多用法

$IFDEF 等同于 $IF DEFINED(...) : 它们的结束分别是: $ENDIF、$IFEND; 例子中的 VER200 是 Delphi 2009 的标识. begin {$IFDEF VER200} ShowMessage('这是 Delphi 2009'); {$ENDIF} {$IF D......

geek_loser
2015/01/29
0
0
Delphi编写wps office办公软件实例(创世纪篇)

很早就想用Delphi开发wps office插件,现在可以实现啦 开发前的准备工作 本文的开发环境是基于 delphi 7.0 和 WPS OFFICE 2009 个人版。开发前要先做好以下准备 工作。先导入相关的 COM 库。...

crossmix
2015/09/16
43
0

没有更多内容

加载失败,请刷新页面

加载更多

等语句含义

经常会看到某些网站的框架中会用到 <!--[if IE7]><![endif]--> 等语句,今天特意查阅了下它们的区别: <!--[if IE]>所有的IE可识别<![end if]--><!--[if !IE]>除IE外都能识别<![end if]-->......

度_
19分钟前
0
0
资源的有限性与任务的复杂性之间的矛盾

看了一篇文章How to Manage Connections Efficiently in Postgres, or Any Database, 文章讨论了如何管理Postgres数据库连接,列举了几种方式: 每个请求一个连接 连接复用 连接池 连接池管理...

52iSilence7
19分钟前
1
0
Python PEP8规范整理

PEP8规范总结 PEP8 是什么呢,简单说就是一种编码规范,是为了让代码“更好看”,更容易被阅读。 具体有这些规范,参考 PEP 8 --Style Guide for Python Code.当然也可以使用Pycharm检查或使...

_Change_
31分钟前
0
0
input去空格

货币转换while True:MonStr = input()if MonStr[:3] == "RMB":USD = eval(MonStr[3:])/6.78print("USD{:.2f}".format(USD))elif MonStr[:3] == "USD":RMB = eval(MonStr[3:......

fadsaa
34分钟前
0
0
单例设计模式

单例设计模式 设计模式介绍与代码编写 在编写程序时经常会遇到一些典型的问题或需要完成某种特定需求.设计模式就是针对这些问题和需求.在大量的实践中总结和理论化之后的代码结构.编程风格以...

码农屌丝
36分钟前
0
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部