procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
label1.Caption:=inttostr(x);
label2.Caption:=inttostr(y);
end;
最简单的方法.
Y: Integer);
begin
label1.Caption:=inttostr(x);
label2.Caption:=inttostr(y);
end;
最简单的方法.
解决方案 »
- 为什么 Borland不出中文版的DElphi
- 谁会用delphi中的mediaplayer录制alaw编码格式的wav文件,请指点一下,到底该怎么做呢?
- 如何解决压缩和解压缩的问题??各位大哥哥帮帮小弟!!!#32
- reportbuilder报表控件在那儿有下载?
- 如何共享C盘??
- 新手问题:在数据模块中使用TStoredProc调用存储过程,运行时报错:error creating cursor handle -急
- 高分求解!!高手请进》》》有关DLL的参数???
- 偶是牛虻,偶把偶的两个源代码(机房管理系统,仪器管理系统)公布在了偶得主页上,大家快去下载吧//牛虻
- 怎么在程序里面调TELNET?????
- 谁知道哪里有TeeChart的控件下载吗?
- 怎样自动查找DBLISTBOX中的内容
- 高难问题,愿送上100分,如何用delphi控制Excel的导入问题!
GetCursorPos可能可以,但能不能说具体点。比如得到后用个label显示出来。
ptCursor: TPoint;
begin
//获取鼠标的位置
GetCursorPos(ptCursor);
end;想知道详细情况:光标放到TPoint上,按F1;光标放到GetCursorPos上,按F1其实楼上各位已说得很好了。自己动手试试吧。