Tbitbtn按钮,当鼠标移到上面时,按钮字体变色,移出时变回原来的颜色,请高手指点……,在线急等之!!!!
解决方案 »
- 关于DELPHI中float处理的问题
- [FAQ] Modem连接创建后,从COM中读取,总是会首先读到某个字符,为什么?解决问题后加到100分
- 寻求删除带外键的表数据的方法!!!用SQL语句!!!
- 高分寻求数组定义答案~
- sql server2000,采用BDE做数据库连接,出现了一些很奇怪的问题…………
- 如何用delphi制作ActiveX控件,使它能响应MouseLeave消息?
- 两个程序之间自定义消息与消息处理过程
- 初学从何开始?
- 修改更新问题
- 求注 idhttp.post xml格式的数据时 服务器收到的是乱码(含有%3E')
- dspack控件的GetDuration用法问题?高手请进
- FTPClient上传下载的问题
增加
property OnMouseEnter: TNotifyEvent read FOnMouseEnter write FOnMouseEnter;
property OnMouseLeave: TNotifyEvent read FOnMouseLeave write FOnMouseLeave;
处理CM_MOUSEENTER,CM_MOUSELEAVE
Y: Integer);
begin
if (X>0) and (X<BitBtn1.Width) and (Y>0) and (Y< Bitbtn1.Height ) then
BitBtn1.Font.Color := clBlue
else
BitBtn1.Font.Color := clRed;
end;procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
if (X>BitBtn1.Left) and (X<BitBtn1.Left+BitBtn1.Width)
and (Y>BitBtn1.Top) and (Y< BitBtn1.Top+Bitbtn1.Height ) then
BitBtn1.Font.Color := clBlue
else
BitBtn1.Font.Color := clRed;
end;