如何实现按住shift键选中数据窗口中的多条数据

wht8008 2002-09-18 05:57:13
如何实现按住shift键选中数据窗口中的多条数据
...全文
111 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Farshow 2002-09-18
  • 打赏
  • 举报
回复
pfc中有行选中服务的,打开服务然后选选中类型为Extended!就可以了
咖啡 2002-09-18
  • 打赏
  • 举报
回复
在鼠标单击事件里判断用户是否按下了shift键,然后写个循环语句就行了。
Event Clicked:
Long ll_row,ll_loop

IF KeyDown(KeyShift!) THEN
ll_row = This.GetSelectedRow()
IF ll_row < row THEN
For ll_loop = ll_row + 1 To row
This.SelectRow(ll_loop,True)
Next
ELSE
For ll_loop = row To ll_row - 1
This.SelectRow(ll_loop,True)
Next
END IF
booksfount 2002-09-18
  • 打赏
  • 举报
回复
给你一段代码:写在dw的clicked


long lrow,lstartrow,lendrow
if keydown(keycontrol!) then
if row>0 then
this.selectrow(row,true)
else
return
end if
elseif keydown(keyshift!) then
this.setredraw(false)
lstartrow=this.getrow()
lendrow=row
if lstartrow()>lendrow then
for lrow=lstartrow to lendrow step -1
this.selectrow(lrow,true)
next
else
for lrow=lstartrow to lendrow
this.selectrow(lrow,true)
next
end if
this.setredraw(true)
else
this.selectrow(0,false)
this.selectrow(row,true)
end if


sunxiaoli 2002-09-18
  • 打赏
  • 举报
回复
ctrl+左右上下箭头键

1,077

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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