设置首页收藏本站
授权版本:2024_10
开启左侧

HDrawingObject 对象捕捉

[复制链接]
Skyhalcon 发表于 2022-8-22 15:27:18 | 显示全部楼层 |阅读模式
各位大神,
   有谁知道,如何通过选择对应ITEMS 文字说明,焦点自动聚焦到已创建的  HDrawingObject 对象,并获取焦点?

同时 HDrawingObject  创建的对象的活动靶点 如何二次编辑 ?

有知道的前辈吗?帮忙解答一下,谢谢!
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
yaozzj 发表于 2022-8-23 09:20:20 | 显示全部楼层
判断坐标,重新绘制
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
Gluse 发表于 2022-8-23 15:32:38 | 显示全部楼层
希望这几个函数能帮到你
        //
        // 摘要:
        //     Adds a callback for the attach event, that is, this callback is executed when
        //     a drawing object is attached to the window.
        //
        // 参数:
        //   f:
        //     Callback function with the signature defined by HDrawingObjectCallback
        public void OnAttach(HDrawingObjectCallbackClass f);
        //
        // 摘要:
        //     Adds a callback for the attach event, that is, this callback is executed when
        //     a drawing object is attached to the window.
        //
        // 参数:
        //   f:
        //     Callback function with the signature defined by HDrawingObjectCallback
        public void OnAttach(HDrawingObjectCallback f);
        //
        // 摘要:
        //     Adds a callback for the detach event, that is, this callback is executed when
        //     a drawing object is detached from the window.
        //
        // 参数:
        //   f:
        //     Callback function with the signature defined by HDrawingObjectCallback
        public void OnDetach(HDrawingObjectCallback f);
        //
        // 摘要:
        //     Adds a callback for the detach event, that is, this callback is executed when
        //     a drawing object is detached from the window.
        //
        // 参数:
        //   f:
        //     Callback function with the signature defined by HDrawingObjectCallback
        public void OnDetach(HDrawingObjectCallbackClass f);
        //
        // 摘要:
        //     Adds a callback for the resize event, that is, this callback is executed whenever
        //     the drawing object's position changes.
        //
        // 参数:
        //   f:
        //     Callback function with the signature defined by HDrawingObjectCallback
        public void OnDrag(HDrawingObjectCallback f);
        //
        // 摘要:
        //     Adds a callback for the resize event, that is, this callback is executed whenever
        //     the drawing object's position changes.
        //
        // 参数:
        //   f:
        //     Callback function with the signature defined by HDrawingObjectCallback
        public void OnDrag(HDrawingObjectCallbackClass f);
        //
        // 摘要:
        //     Adds a callback for the resize event, that is, this callback is executed whenever
        //     the user changes any of the dimensions of the draw object.
        //
        // 参数:
        //   f:
        //     Callback function with the signature defined by HDrawingObjectCallback
        public void OnResize(HDrawingObjectCallbackClass f);
        //
        // 摘要:
        //     Adds a callback for the resize event, that is, this callback is executed whenever
        //     the user changes any of the dimensions of the draw object.
        //
        // 参数:
        //   f:
        //     Callback function with the signature defined by HDrawingObjectCallback
        public void OnResize(HDrawingObjectCallback f);
        //
        // 摘要:
        //     Adds a callback for the resize event, that is, this callback is executed whenever
        //     the drawing object is selected.
        //
        // 参数:
        //   f:
        //     Callback function with the signature defined by HDrawingObjectCallback
        public void OnSelect(HDrawingObjectCallback f);
        //
        // 摘要:
        //     Adds a callback for the resize event, that is, this callback is executed whenever
        //     the drawing object is selected.
        //
        // 参数:
        //   f:
        //     Callback function with the signature defined by HDrawingObjectCallback
        public void OnSelect(HDrawingObjectCallbackClass f);
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
 楼主| Skyhalcon 发表于 2022-8-23 16:25:00 | 显示全部楼层
{:1_311:}非常感谢 Gluse 的回复,看的一脸蒙呀,先研究研究!
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
 楼主| Skyhalcon 发表于 2022-8-23 16:30:40 | 显示全部楼层
yaozzj 发表于 2022-8-23 09:20
判断坐标,重新绘制

是要把原先的那个解绑 ,删除吗后,在对应坐标重绘一个吗?
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表