Hint的问题:把statusbar控件设成自动显示hint,可是当鼠标移动到没有Hint的控件上时,statusbar总是显示一个特定的Hint!

8341 2002-04-13 09:11:59
这个时候是否可以显示我指定的一个字符串?
...全文
61 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
短歌如风 2002-05-28
  • 打赏
  • 举报
回复
在窗体上放一个ApplicationEvents(Additional页).
在它的OnHint中写:
procedure TForm1.ApplicationEvents1Hint(Sender: TObject);
begin
if Application.Hint = '' then
Application.Hint:='Application';
StatusBar1.SimpleText := Application.Hint;
end;
短歌如风 2002-05-27
  • 打赏
  • 举报
回复
在Application.OnHint中作处理.
hkhurus 2002-05-27
  • 打赏
  • 举报
回复
if GetLongHint(Application.Hint) = '' then
StatusBar1.SimpleText := 'sdfsdf'
else
StatusBar1.SimpleText := GetLongHint(Application.Hint);
ken_henderson 2002-05-27
  • 打赏
  • 举报
回复
可以,StatusBar.Item[0].Text := '...";

5,928

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧