例:失效保存按钮
1.在FROM级中的WHEN-NEW-FORM-INSTANCE中加入
set_menu_item_property('FILE.SAVE', enabled, property_off);
如果想在保存按钮失效后保存记录,可以在自己设计的按钮触发器中写DO_KEY('COMMIT_FORM');
注意:请失效保存快捷键Ctrl+S
KEY-COMMIT
NULL;
2.与 此类似的还有。
set_menu_item_property('Edit.delete', enabled, property_off); 失效"Deletes Recode
set_menu_item_property('Edit.Clear', enabled, property_off); 失效"Clear Recode"
3.也可以隐藏掉
set_menu_item_property('Edit.delete', displayed, property_off);
set_menu_item_property('FILE.NEW', displayed, property_off);