Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 PowerBuilder 中获取活动工作表菜单。如果我禁用菜单,它会禁用最后打开的工作表菜单而不是活动工作表菜单?
Waseem Kiyani 于 2012 年 12 月 4 日在 14:28 回答了这个问题
实际上我没有得到菜单 ID。相反,我直接禁用了菜单
m_sheet.file.enabled = false
感谢 Maximus,我使用菜单 ID 禁用了菜单项。
例子:
m_sheet lm_setupMenu lm_setupMenu = This.menuID lm_setupMenu.m_new.enabled = False