PB中用回车键代替TAB键

时间:2021-05-02

如何在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邮箱联系删除。

相关文章