on 02-10-2011 2:02 PM
Hola a todos,
mirando el ejemplo del botón derecho de:
COM UIVB.NET22.RightClick tengo una duda. El código es el siguiente:
Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
oCreationPackage.UniqueID = "OnlyOnRC"
oCreationPackage.String = "Only On Right Click"
oCreationPackage.Enabled = True
oMenuItem = SBO_Application.Menus.Item("1280") 'Data'
oMenus = oMenuItem.SubMenus
oMenus.AddEx(oCreationPackage)
Pero si le cambio el SBO_Application.Menus.Item("1280") por otro menú, luego no funciona. Por qué?
Cómo se debe hacer para poner un menú cuándo hagan clic con el botón derecho?
Saludos y gracias
Veo en la ayuda que sólo se pueden poner en unos menús concretos:
By default, the right-click menu displays all the menu items from the Edit, Data, and Goto menus.
Saludos y gracias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.