on 10-17-2008 3:55 AM
HI All,
This is krishna, I created a user defined Menu. For that i put a logo and placed after production. Before addon regestration it is showing fine. But when i regestred that, the logo is displaced. I am sending my code, once chck it tel me what happend.
oMenuItem = SBO_Application.Menus.Item("43520"); // moudles'
string sPath = null;
sPath = Application.StartupPath;
sPath = sPath.Remove(sPath.Length - 9, 9);
// find the place in wich you want to add your menu item
// in this example I chose to add my menu item under
// SAP Business One.
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP;
oCreationPackage.UniqueID = "MyMenu01";
oCreationPackage.String = "Quality Assurance";
oCreationPackage.Enabled = true;
oCreationPackage.Image = sPath + "UI.bmp";
oCreationPackage.Position = 9;
oMenus = oMenuItem.SubMenus;
Thanx and Regards,
krishna.v
Hi..
check Ur Ard folder image is there or not.
Regards..
Billa 2007
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
place image along with the exe and DLL Files use the below code
Dim oMenu As SAPbouiCOM.Menus = SBO_Application.Menus
Dim oMenuItem As SAPbouiCOM.MenuItem
Dim SPath As String
SPath = Application.StartupPath
Try
SPath = CurDir()
Catch ex As Exception
End Try
oMenuItem = SBO_Application.Menus.Item("43520")
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP
If SBO_Application.Menus.Exists("MainMenuUID") Then
SBO_Application.Menus.RemoveEx("MainMenuUID")
End If
oCreationPackage.UniqueID = "MainMenuUID"
oCreationPackage.String = "MainMenuName"
oCreationPackage.Enabled = True
oCreationPackage.Image = SPath & "\xyz.bmp"
oCreationPackage.Position = 9
oMenu = oMenuItem.SubMenus
oMenu.AddEx(oCreationPackage)
oMenuItem = SBO_Application.Menus.Item("MainMenuUID")
oMenu = oMenuItem.SubMenus
regards,
varma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
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.