Skip to Content
0
Former Member
Feb 04, 2004 at 02:36 PM

Q: disable main menu

63 Views

Hi all,

I would like to prevent the user from taking any action while the addon is loading. (Actually, as soon as the addon connects to the UIAPI.)

I can freeze the menu form (form type 169) and unfreeze it when loading is done.

But if I try to disable the menuitem modules like this:

Dim uimnuMenuItem As SAPbouiCOM.MenuItem

'disable MenuItem modules

uimnuMenuItem = SBO_Application.Menus.Item(3)

'if DisableSBO is True then set enabled to false

uimnuMenuItem.Enabled = false

... the last line creates a generic error in UIAPI. I am using 6.20.36 SP2 patchlevel 10.

Any ideas how to lock parts or all of the menu?

TIA, Lutz Morrien