如何实现鼠标移动到一个button上就改变button.caption,移开后恢复原来的caption 如题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure TForm1.Button1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);begin button1.caption:='新值'end;//其他button周围的procedure TForm1.xxxxMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);begin button1.caption:='旧值'end; 我想是用ONenter和 onexit事件吧 to boz,难道周围所有的控件都要写上button1.caption:='旧值'吗,这样似乎不是办法吧 把button用一个其他的控件(比如panel)包起来就好了!! procedure TForm1.Button1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);begin button1.caption:='新值'end;//其他button周围的procedure TForm1.xxxxMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);begin button1.caption:='旧值'end;应该可以实现的。 right,用panel把button包起来,然后按照boz(波)兄的做法(这厮什么名字·!#¥·%),问题解决了。 把bglong(阿笨)和BOZ的方法加起来使用是最好的方法 虽然用PANEL把BUTTON包起来了,但是如果button的LEFT=0时,MOUSE从BUTTON左边移出去时可能并不会触发PANEL的MOUSEOVER事件,这样会没问题吗,望各位大侠考虑一下。 Delphi内嵌汇编 用bde连接oracle8数据库,连接成功,但在query时提示表不存在 delphi6补丁2安装不上 显示的问题 大家帮帮我,FastReport报表中如何使用TeeChart(6.01)啊? 还是关于登录的??? 请问关建字inherited 是什么意思 有什么作用? ADO的BUG的问题 全局键盘钩子为何不灵? Delphi5写的CGI程序在PWS上可用,而IIS上不行! COM+组件已经注册了,本地可以使用,可远程机器为什么不能用啊???急#### 紧急求救:如何实现远程数据库访问
Y: Integer);
begin
button1.caption:='新值'
end;
//其他button周围的
procedure TForm1.xxxxMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button1.caption:='旧值'
end;
Y: Integer);
begin
button1.caption:='新值'
end;
//其他button周围的
procedure TForm1.xxxxMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button1.caption:='旧值'
end;
应该可以实现的。