Reputation: 51
How to get the active sheet menu in PowerBuilder. If I disable menu, it disables the last open sheet menu rather than the active sheet menu?
Upvotes: 5
Views: 1750
Reputation: 399
Waseem Kiyani answered this Dec 4 '12 at 14:28
Actually I was not getting menu ID. Rather, I was disabled the menu directly
m_sheet.file.enabled = false
Thanks to Maximus, I disabled the menu item by using the menu Id.
Example:
m_sheet lm_setupMenu
lm_setupMenu = This.menuID
lm_setupMenu.m_new.enabled = False
Upvotes: 1