受不了,
把Button的ShowHint设为True
在Hint属性中写要显示的文字
把Button的ShowHint设为True
在Hint属性中写要显示的文字
解决方案 »
- 如何将DBGrid里查询SQL里的数据结果,通过一个SpeedButton按钮导出到Excel里?
- 新手求教:DELPHI中如何将一个图片保存为PHOTOSHOP的PSD格式?
- ADOQuery连接多表查询后数据的更新问题
- 请问 windows 优化大师 左边儿的那个导航条是用什么控件怎么做出来的呀?
- [获取主板Bios信息] 高手请进
- 请问那有向WORD编辑功能的控件可以嵌入到DELPHI程序里???????????????????????????
- 类型转换的问题 救命!!!!
- 一个直接输出打印的问题!
- ★★简单问题得高分★★,怎样将bigint赋值给dataset的某个field,是不是用assignvalue?
- 如何让combobox一获得焦点就显示下拉框??
- 请问过滤条件filter怎么用??
- 大家快快来给Delphi6抓虫
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
type
tmybutton=class(tbutton)
private
procedure onmouseenter(var msg:tmessage);message cm_mouseenter;
procedure onmouseleave(var msg:tmessage);message cm_mouseleave;
end;
var
Form1: TForm1; m1:tmybutton;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
begin
m1:=tmybutton.Create(nil);
m1.Parent:=form1;
m1.Left:=120;
m1.Top:=130;
m1.Width:=75;
m1.Height:=30
end;{ tmybutton }procedure tmybutton.onmouseenter(var msg: tmessage);
begin
m1.Caption:='yourstring'
end;procedure tmybutton.onmouseleave(var msg: tmessage);
begin
m1.Caption:='';
end;end.
好象刚才才看到一个问同样问题的,不知道是不是你。
照: galeboy(狂风小子) 的做法试试就知道了。