Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get active sheet menu in PowerBuilder?

Tags:

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?

like image 869
Waseem Kiyani Avatar asked Nov 13 '22 16:11

Waseem Kiyani


1 Answers

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 
like image 178
Eric Glenn Avatar answered Jan 04 '23 03:01

Eric Glenn