var
location :tpoint;
produce form.formmousemove(...)
begin
win32check(GetCursorPos(location));
if location.x = ... and location.y = ... then
begin
...
...
end;
end;
location :tpoint;
produce form.formmousemove(...)
begin
win32check(GetCursorPos(location));
if location.x = ... and location.y = ... then
begin
...
...
end;
end;
解决方案 »
- dbexpress 连oracle游标的问题
- 使用TF1book控件的程序在别的机器上使用要怎么部署?
- 如何利用DELPHI无提示将EXCEL2.1另存或转换成高版本?EXCEL2003即可
- 关于EDIT控件中输入数据长度的问题!
- 关于数据插入,解决马上给分
- 如何改变hint的字体和色彩
- 如何判断DBGrid所连接的DataSet是ADODataSet,ADOQurey?
- 昨晚在中国东莞被查暂住证,扣去了身份证...
- 再问限制鼠标的移动范围
- 有营口的吗?请进!
- 用listview实现数据列表,如何按column排序?(点击一列就可以自动升、降序的那种)
- interbase的日期型怎么插数据进去呀?
procedure Tform1.mousemove(sender:tobject;shift:tshiftstate;x,y:integer);
with button1 do
if x>left and x<(left+width) and y>top and y<(top+height) then do (what you want)
............end;
OK,Give Me score!!!!!!!!!
Procedure MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
Begin
if Sender is TSpeedButton then SpeedButton1.Font.Color:=clRed
else SpeedButton1.Font.Color:=clBlue;
end;
让主窗体的 OnMouseMove=MouseMove
在窗体上放置几个 SpeedButton 按钮 也让其OnMouseMove=MouseMove
一切那么简单 试一试