DelphiXE4 TBalloonHint组件的使用
来源:互联网 发布:linux 网桥 问题 编辑:程序博客网 时间:2024/05/22 03:25
本例相关图片:
方法一:
- unit Unit1;
- interfaceuses 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.
方法二:
一共放置4个组件:BalloonHint1 ImageList1 Button1 Edit1
在ImageList1按钮上设置
BalloonHint1.Images := ImageList1;
在按钮button1和编辑框edit1上的属性中直接设置
1、customerhint为BalloonHint1;
2、showhint为True
3、hint := 提示:|这是 Button1 的 Hint|0
或者
Hint := '敬告:|这是 Edit1 的 Hint|1';
- DelphiXE4 TBalloonHint组件的使用
- TBalloonHint气泡提示的用法(How to use TBalloonHint)
- TBalloonHint气泡提示的用法(How to use TBalloonHint)
- DelphiXE4发布了
- Delphi 2009 之 TBalloonHint
- 日期组件的使用
- 学习组件的使用:
- Flash组件的使用
- 使用组件的样式
- COM组件的使用
- JMail组件的使用
- A3000组件的使用
- CListCtrl组件的使用
- richfaces组件的使用
- ProgressBar组件的使用
- MSCOMM组件的使用
- ListView组件的使用
- ExpandableListView组件的使用
- Oracle存储过程基本语法
- STL常见面试题
- php论坛中常用的两个时间差(多少分钟前,多少小时前,多少天前)
- NIO与传统IO的区别
- SQLServer 2012 字符串函数
- DelphiXE4 TBalloonHint组件的使用
- 【Android】以BaseAdapter做适配器的ListView及其性能优化
- 头插法建立链表
- 树莓派Raspberry Pi 入门之HowTo
- Android读取RAM,ROM,SD卡容量
- Spring框架简介
- poj 3468 A Simple Problem with Integers ( 线段树 )
- BNU 12680 Jupiter Atacks! (线段树)
- vc6.0生成ocx,然后使用js调用