on 06-08-2005 8:18 AM
I need a quick link to my user define form.
How to add my user define form to user menu?
Try this sample code:
Set oCreationPackage = sboApplication.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
Set oMenuItem = sboApplication.Menus.Item("43520") '// modules menu
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP
oCreationPackage.UniqueID = 50000
oCreationPackage.String = "NEW MENU FOLDER"
oCreationPackage.Image = App.Path & "\logo.bmp"
oCreationPackage.Enabled = True
oCreationPackage.Position = 15
Set oMenus = oMenuItem.SubMenus
'// Add the menu to the SBO application
oMenus.AddEx oCreationPackage
Set oCreationPackage = sboApplication.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
Set oMenus = sboApplication.Menus.Item(ID_MENU_AZI).SubMenus '// modules menu
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
oCreationPackage.UniqueID = 50001
oCreationPackage.String = "NEW MENU ITEM"
oCreationPackage.Enabled = True
'oCreationPackage.Position = 15
oMenus.AddEx oCreationPackage
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.