Waseem Kiyani
Waseem Kiyani

Reputation: 51

How to get active sheet menu in PowerBuilder?

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

Answers (1)

Eric Glenn
Eric Glenn

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

Related Questions