Skip to Content
0
Former Member
May 15, 2008 at 04:44 AM

Why user added Right click menu get displayed on all the open forms?

16 Views

Hi Experts,

I have adding different 3 right click menus on 3 user defined forms while they load. I am removing these menus on close event of the respective form. But when three forms are open simultaneously all the 3 menus get displayed on each form.

These menus get displayed on system forms also

What I am doing wrong.

'Adding the right clicking menu in the earning form

oCreationPackage = SBOApplication.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)

oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING

oCreationPackage.UniqueID = "DelRow"

oCreationPackage.String = "Delete Row"

oCreationPackage.Enabled = True

oMenuItem = SBOApplication.Menus.Item("1280")

oMenus = oMenuItem.SubMenus

oMenus.AddEx(oCreationPackage)

Regards,

Atul.