求助_grid_set_col_width会被再覆盖_产供销
学习交流 » 产供销 »grid_set_col_width会被再覆盖
|
|
| |
作者 |
|
htc [个人空间]
注册  2017-12-30 发贴数 538 精华数 0 原创贴 0 来自 状态 正常
级别 会员 |
|
|
目的是通过控件值来实现不同的列显示与隐藏,但测试会闪一下后被再覆盖。 int show_col_ui() { string zh; zh=gui_get_val("ComboBox_Ext_Account_Id"); switch(zh) { case '01': grid_set_col_width("MG_Item","a1",0); grid_set_col_width("MG_Item","a2",0); grid_set_col_width("MG_Item","a3",20); grid_set_col_width("MG_Item","a4",20); break; case '02': grid_set_col_width("MG_Item","a1",20); grid_set_col_width("MG_Item","a2",20); grid_set_col_width("MG_Item","a3",0); grid_set_col_width("MG_Item","a4",0); break; } return 1; } int func_show() { show_col_ui(); return 1; }; int obj_change() { //change_obj if (change_obj=="ComboBox_Ext_Account_Id") { show_col_ui(); } return 1; |
|
|
于 2020-06-22 21:11 被 htc 修改
|
|
|
|