文档章节

Delphi 2009 之 TBalloonHint

涂孟超
 涂孟超
发布于 2014/09/26 15:35
字数 329
阅读 36
收藏 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
317
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
PostgreSQL的Delphi组件--PostgreDAC

PostgreDAC 是适合 Delphi/C++ Builder 操作 PostgreSQL 数据库的功能非常强大的组件包,允许你创建直连 PostgreSQL 数据库的 Delphi/C++ Builder 应用,无需 BDE 和 ODBC 支持。 使用 Post...

匿名
2012/03/20
2.1K
0

没有更多内容

加载失败,请刷新页面

加载更多

线程安全性--volatile

volatile:当多个线程进行操作共享数据时,可以保证内存中的数据是可见的; @Slf4jpublic class MyVolatile { public static void main(String[] args) { ThreadRun threadRun...

wuyiyi
16分钟前
1
0
大数据入门之hadoop相关概念知识点整理

Hadoop是一个开源框架,允许使用简单的编程模型在跨计算机集群的分布式环境中存储和处理大数据。它的设计是从单个服务器扩展到数千个机器,每个都提供本地计算和存储。今天整理了一些关于had...

技术阿飞
17分钟前
1
0
ssh 免登

ssh-copy-id三步实现SSH无密码登录和ssh常用命令 ssh-copy-id -i .ssh/id_rsa.pub 用户名字@192.168.x.xxx

miaojiangmin
19分钟前
1
0
2018阿里云双12年终大促主会场全攻略

2018阿里云双12年终大促活动已经于12月7日正式开启,从已开放的活动页面来看,活动分为两个阶段: 12月7日-12月23日的拉新返现阶段和12月24日-12月28日的TOP100英雄榜PK阶段。 活动核心亮点:...

阿里云官方博客
20分钟前
1
0
聊聊flink的MemoryStateBackend

序 本文主要研究一下flink的MemoryStateBackend StateBackend flink-runtime_2.11-1.7.0-sources.jar!/org/apache/flink/runtime/state/StateBackend.java @PublicEvolvingpublic interface......

go4it
20分钟前
1
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部