网站首页 网站建设 IT知识 IT知识教程 PB中用回车键代替TAB键

PB中用回车键代替TAB键

2021-05-02 21:16:13

如何在PB中用回车键来代替TAB键呢,下面给出了一个较简单的实现源代码。

//在数据窗口当中按下回车键之后,焦点移动到后面的字段,如从最后移动,则自动跳转到下一行send(handle(this),256,9,long(0,0))

//窗口当中的enter事件!在datawindow的事件当中新建一个自定义事件ue_enter,在even_id当中paste"pbm_dwnprocessenter"long ll_row,ll_RowCountinteger li_col,li_colcountli_col = dw_1.GetColumn()li_ColCount = long(describe(dw_1,"datawindow.column.count"))if li_col = li_ColCount then ll_row = dw_1.GetRow() ll_RowCount = dw_1.RowCount() if ll_row = ll_RowCount then ll_row = dw_1.InsertRow(0) dw_1.setredraw(false) scrolltorow(dw_1,ll_Row) setrow(dw_1,ll_Row) setcolumn(dw_1,1) dw_1.setredraw(true) dw_1.SetFocus() dw_1.modify("datawindow.horizontalscrollposition=1") return 1 end ifend if send(handle(this),256,9,long(0,0))return 1

本文源自:翔宇亭——IT乐园(http://),转载请保留此信息!

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。 如涉及版权问题,请提交至online#300.cn邮箱联系删除。

以上产品还未完全满足我的所有需求,在下方提交我的专属需求
我的专属需求:
*手机号:
*验证码:
img
咨询报价
现在咨询
img

在线咨询

建站在线咨询

img

微信咨询

扫一扫添加
动力姐姐微信

img
img

TOP