怎样得到鼠标在 window 上的 datawindow里的控件的名称(头痛了一晚)

qimin168 2003-11-10 11:20:03
鼠标在窗口上移动时,怎样得到 Window 内的 DataWindow里的 text or commandbox or ...的名称。
...全文
27 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
「已注销」 2003-11-11
  • 打赏
  • 举报
回复
指点一下:
if xpos > integer(dw_toolbar.describe(dwobjectname+".text.x")) and xpos < integer(dw_toolbar.describe(dwobjectname+".text.x")) + integer(dw_toolbar.describe(dwobjectname+".text.width")) &
and ypos > integer(dw_toolbar.describe(dwobjectname+".text.y")) and ypos < integer(dw_toolbar.describe(dwobjectname+".text.y")) + integer(dw_toolbar.describe(dwobjectname+".text.heigth")) then
wf_toolbar(dwobjectname)
end if

为什么integer(dw_toolbar.describe(dwobjectname+".text.x")) 值 = 0

klbt 2003-11-11
  • 打赏
  • 举报
回复
不可以,要用dw_1.Describe(ls_str + ".text='XXX'")的形式实现

给分点击帖子右上方[管理],给分后输入密码,结帖。
「已注销」 2003-11-11
  • 打赏
  • 举报
回复
可以了, 我怎样给你分?
还问一下,Dw_1.object.-- 后可不可以接变量名
klbt 2003-11-11
  • 打赏
  • 举报
回复
你可以自己定义一个数据窗口事件,事件ID:pbm_dwnmousemove
「已注销」 2003-11-11
  • 打赏
  • 举报
回复
好像不行... 怎样触发呀
「已注销」 2003-11-10
  • 打赏
  • 举报
回复
非常谢谢你, 我先试试
佣工7001 2003-11-10
  • 打赏
  • 举报
回复
GetObjectAtPointer(),不过只能是datawindow中的控件

740

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 脚本语言
社区管理员
  • 脚本语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧