zoukankan
html css js c++ java
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.
窗体文件:
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 = {
}
end
end
查看全文
相关阅读:
例1-6 火车问题
PyCharm---设置py文件头部信息
pycharm写pytest代码
如何在pycharm里面运行pytest用例
Pytest学习(1)--快速入门
Octave快速入门--机器学习知识点补充
机器学习知识点补充 ----罗尔定理
机器学习 ----矩阵知识补充
机器学习笔记---多变量线性回归(Linear Regression with Multiple
机器学习笔记 ---Linear Algebra Review
原文地址:https://www.cnblogs.com/luckForever/p/7254671.html
最新文章
python yield关键字作用
python global变量作用域
python raise异常处理
Debug和Release的区别
pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your PATH. See README file for more information
python execjs execjs._exceptions.ProgramError: TypeError: 缺少对象
This package requires Rust >=1.41.0 This package requires Rust >=1.41.0 error: Microsoft Visual C++ 14.0 or greater is required
Twisted synchronization asynchronization
数据结构及算法
一起玩转微服务(5)——分层架构
热门文章
process.env.NODE_ENV详解
[原理] Lex Yacc规则格式
【编译原理系列】文法的定义
电子书
PG经典教程
postgresql之GROUPING SETS
lex与yacc快速入门
Postgresql Checkpoint 原理
postgresql->PageHeaderData->pd_flags
例1-7 对角线问题
Copyright © 2011-2022 走看看