乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 137|回复: 9

如何获取屏幕坐标?

[复制链接]

5

主题

28

帖子

1

银币

初来乍到

Rank: 1

铜币
48
发表于 2013-10-31 18:43:00 | 显示全部楼层 |阅读模式
不通过鼠标点击获取屏幕坐标,而是鼠标不用点击即可获取鼠标位置坐标,请问各位大神该如何处理呢?
回复

使用道具 举报

32

主题

651

帖子

8

银币

中流砥柱

Rank: 25

铜币
779
发表于 2013-10-31 19:42:00 | 显示全部楼层
PointMonitor
回复

使用道具 举报

5

主题

28

帖子

1

银币

初来乍到

Rank: 1

铜币
48
发表于 2013-10-31 21:57:00 | 显示全部楼层

可以直接不用点击就获取吗?能再解释详细点吗?我是初学者,急急急,谢谢了。。。
回复

使用道具 举报

32

主题

651

帖子

8

银币

中流砥柱

Rank: 25

铜币
779
发表于 2013-11-1 13:23:00 | 显示全部楼层
public event Autodesk.AutoCAD.EditorInput.PointMonitorEventHandler PointMonitor
    Autodesk.AutoCAD.EditorInput.Editor 的成员
------------------
这个事件里面可以取得当前鼠标光标所对应的坐标
回复

使用道具 举报

32

主题

651

帖子

8

银币

中流砥柱

Rank: 25

铜币
779
发表于 2013-11-1 13:26:00 | 显示全部楼层
public Autodesk.AutoCAD.Geometry.Point3d ComputedPoint { get; }
    Autodesk.AutoCAD.EditorInput.InputPointContext 的成员
回复

使用道具 举报

32

主题

651

帖子

8

银币

中流砥柱

Rank: 25

铜币
779
发表于 2013-11-1 13:27:00 | 显示全部楼层
public Autodesk.AutoCAD.EditorInput.InputPointContext Context { get; }
    Autodesk.AutoCAD.EditorInput.PointMonitorEventArgs 的成员
回复

使用道具 举报

32

主题

651

帖子

8

银币

中流砥柱

Rank: 25

铜币
779
发表于 2013-11-1 13:27:00 | 显示全部楼层
public delegate void PointMonitorEventHandler(object sender, Autodesk.AutoCAD.EditorInput.PointMonitorEventArgs e)
    Autodesk.AutoCAD.EditorInput 的成员
回复

使用道具 举报

5

主题

28

帖子

1

银币

初来乍到

Rank: 1

铜币
48
发表于 2013-11-2 09:44:00 | 显示全部楼层
不好意思啊,请问一下,这个事件如何触发呢?还是不会啊 。。。
回复

使用道具 举报

5

主题

28

帖子

1

银币

初来乍到

Rank: 1

铜币
48
发表于 2013-11-3 21:50:00 | 显示全部楼层
各位大神,给力啊。。。
回复

使用道具 举报

32

主题

651

帖子

8

银币

中流砥柱

Rank: 25

铜币
779
发表于 2013-11-5 00:04:00 | 显示全部楼层
using aApp = Autodesk.AutoCAD.ApplicationServices.Application;
aApp.DocumentManager.MdiActiveDocument.Editor.PointMonitor += new PointMonitorEventHandler(ed_PointMonitor);
    void ed_PointMonitor(object sender, PointMonitorEventArgs e)
    {
}
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-14 13:12 , Processed in 0.757055 second(s), 72 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表