怎么样在DW中按回车切换到下一行的第一列。

tainy 2002-03-18 10:45:03
怎么样在DW中按回车切换到下一行的第一列。
...全文
259 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
zpqian 2002-03-18
  • 打赏
  • 举报
回复
定义Event:ue_enterkeydown
return long
Event ID pbm_dwnprocessenter
script:
if this.getcolumn()=long(this.object.datawindow.column.count) then
if this.getrow()=this.rowcount() then
this.insertrow(0)
this.scrolltorow(this.getrow()+1)
this.Modify("datawindow.HorizontalScrollPosition = 1")
this.setcolumn(1)
return 1
end if
end if

send(handle(this),256,9,long(0,0))
return 1
xjbs 2002-03-18
  • 打赏
  • 举报
回复
yes
vcpb 2002-03-18
  • 打赏
  • 举报
回复
http://www.csdn.net/expert/topic/390/390423.xml?temp=.2491114
wfzn 2002-03-18
  • 打赏
  • 举报
回复
楼上的说的方法是不是当按回车时,移到下一列??
zytczdd 2002-03-18
  • 打赏
  • 举报
回复
自定义一个名为ue_keyenter的事件
在其中输入
send(handle(this),256,9,long(0,0))
return 1
即可
yl_yz 2002-03-18
  • 打赏
  • 举报
回复
定义event:pbm_dwnProcessEnter
//判断是否为最后行列
int i,li_row
i=this.getcolumn()
i=integer(this.object.datawindow.column.count)
if this.GetColumn()= long(this.object.datawindow.column.count) - 4 then
if this.getRow() = this.rowCount() then
li_row=this.insertrow(0)
this.ScrollToRow(li_row)

this.object.datawindow.HorizontalScrollPosition='0'
this.setColumn("hpbh")//"xhdh")
return 1
end if
end if
//发送tab键消息

send(Handle(this),256,9,long(0,0))
return 1
kaisa_cheng888 2002-03-18
  • 打赏
  • 举报
回复
声明自定义事件,pbm_key,判断当按回车键时,将焦点切换到下一行的第一列
autumn_fox 2002-03-18
  • 打赏
  • 举报
回复
256,9分别是什么意思呀?
在哪儿查这些参数值?

401

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 非技术版
社区管理员
  • 非技术版社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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