我要在工具栏上显示当前按钮的标题,如何显示?
例如:象delphi的控件button一样,我将鼠标放置在上面就显示button字样。
这个功能怎么实现?
例如:象delphi的控件button一样,我将鼠标放置在上面就显示button字样。
这个功能怎么实现?
解决方案 »
- 什么情况啊delphi出现了这个问题有图,前几天的时候我自己也没有解决啊
- 求sql语句
- Inno Setup code段中如何将10进制转化为16进制?
- 不懂Delphi.领导却限时要我去弄懂
- 昨天辛苦了一晚上,今天窗体打不开了,救命啊!
- 关于ocx控件的安装
- 请教一个问题,在dephi里有象vb里datecombo怎样的控件吗?
- dbf一个棘手问题
- 求救高手,加急,本人需要用DELPHI和DB2开发数据库,有这方面的高手请进。送1000分呵
- 是否可以设置TClass类型参数的默认值?例子代码见内。
- 一个简单字符串问题(由整数123得到固定12位的字符串'000000000123')
- 各位大侠,请教如何初始化一个已赋值的二维数组?
-------------------
type
TForm1 = class(TForm)
Button1: TButton;
StatusBar1: TStatusBar;
Edit1: TEdit;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
procedure DisplayHint(Sender: TObject);
end;var Form1: TForm1;
implementation
{$R *.DFM}{ Here is the implementation of the OnHint event handler }{ It displays the application current hint in the status bar }
procedure TForm1.DisplayHint(Sender: TObject);
begin
StatusBar1.SimpleText := GetLongHint(Application.Hint);
end;{ Here is the form OnCreate event handler. }{ It assign the application OnHint event handler at runtime }
{ because the Application is not available in the Object Inspector }
{ at design time }
procedure TForm1.FormCreate(Sender: TObject);
begin
Application.OnHint := DisplayHint;
end;Note: It is not actually necessary to write an OnHint event handler to display hints on the status bar. This can be accomplished more simply by setting the status bar AutoHint property.