PB 数据窗口字段全部设置为不可编辑状态
//==================================================================== // 函数: w_outp_indection_desease_input::wf_init_taporder //-------------------------------------------------------------------- // 描述: 将所有的列的taporder设置为0 //-------------------------------------------------------------------- // 参数: // 无 //-------------------------------------------------------------------- // 返回值: (none) //-------------------------------------------------------------------- // 作者: YJC 日期: 2016年09月25日 //-------------------------------------------------------------------- // 修改历史: // 如果使用dw.Object.DataWindow.ReadOnly=Yes , 数据窗口的复选框仍然会被更改 //==================================================================== string ls_col long ll_colcount long ll_i ll_colcount = long( dw_indection_desease.object.datawindow.Column.Count ) if isnull(ll_colcount) or ll_colcount <= 0 then return for ll_i = 1 to ll_colcount ls_col = dw_indection_desease.describe("#"+string(ll_i)+".name") dw_indection_desease.SetTabOrder (ls_col,0) next
也可在PB工具中使用如下方式操作:
点击标注功能菜单taporder,显示编辑值,改为0即可为不可编辑状态;