在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 3842|回复: 9

[讨论] skill中获取光标的位置的函数是什么?

[复制链接]
发表于 2014-8-13 10:26:16 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
请教有谁知道skill中获取得到光标的位置的函数??
发表于 2014-8-14 16:51:48 | 显示全部楼层
location1=enterpoint( )   location=geWindowToEditPoint(hiGetCurrentWindow(), location1)
location就是当前你活动窗口的光标的位置。进一步可以用xCoord(location)  yCoord(location)来分别取得xy坐标。。。。。
 楼主| 发表于 2014-8-15 10:28:06 | 显示全部楼层
回复 2# ksj116

非常感谢赐教。
发表于 2014-8-15 10:33:24 | 显示全部楼层
非常感谢赐教
 楼主| 发表于 2014-8-15 10:52:51 | 显示全部楼层
回复 3# severdesigner

在virtuoso design environment skill reference 文档中,有函数:
    dbCreateParamInst(
d_cellView
d_master
t_name
l_point
t_orient
[ x_numInst
[ l_params
[ b_physOnly ] ] ]
)
=> d_inst | nil


请教:这个函数里面的d_master是什么?怎样获得的啊?
发表于 2015-3-1 10:24:06 | 显示全部楼层
应该是指master  的database
发表于 2015-3-2 16:47:47 | 显示全部楼层
非常感谢赐教
发表于 2021-3-2 15:18:11 | 显示全部楼层


ksj116 发表于 2014-8-14 16:51
location1=enterpoint( )   location=geWindowToEditPoint(hiGetCurrentWindow(), location1)
location就是 ...


请教一下,location的赋值这一段如何理解,为什么不直接用enterPoint函数,而需要处理一下
发表于 2021-3-6 10:20:47 | 显示全部楼层


baojiewu 发表于 2021-3-2 15:18
请教一下,location的赋值这一段如何理解,为什么不直接用enterPoint函数,而需要处理一下
...


enterPoint只是光标的位置,而你需要的当前窗口的光标位置,所以hiCurrentWindow获取当前窗口中的enterPoint才可以
发表于 2021-8-10 11:16:13 | 显示全部楼层


ksj116 发表于 2014-8-14 16:51
location1=enterpoint( )   location=geWindowToEditPoint(hiGetCurrentWindow(), location1)
location就是 ...


请教一下,如何获取当前layout窗口的中心点坐标?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-27 16:44 , Processed in 0.035136 second(s), 10 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表