Image for add-on in main menu.

Dear All,
I am facing a problem in loading the image for my add-on. when i run the source file the image is displayed in the main menu. But after converting the source file to ARD format the image is not getting displayed.Pls suggest some solution,
Regards,
Anand

Hello
A i am suggesting to use the following code to make sure that the image of the Menu is on the Startup directory...
So
        oMenus = sbo_application.Menus
        Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
        oCreationPackage = sbo_application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
        oMenuItem = sbo_application.Menus.Item("43520") 'moudles'
        Dim sFileName As String = IO.Directory.GetParent(System.Windows.Forms.Application.StartupPath()).ToString & "CFL.BMP"
        If IO.File.Exists(sFileName) = False Then
            sbo_application.MessageBox(String.Format("The Image {0} does not exists for the menu!", sFileName))
        End If
        ' Creation parameters
        oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP
        oCreationPackage.UniqueID = "SM_DMID"
        oCreationPackage.String = "Operations"
        oCreationPackage.Image = sFileName
        oCreationPackage.Position = 4
        oMenus = oMenuItem.SubMenus
        Try ' If the manu already exists this code will fail
            oMenus.AddEx(oCreationPackage)
        Catch er As Exception ' Error Handling
            sbo_application.MessageBox(er.Message)
        End Try
Regards,
J.
Edited by: János Nagy on Nov 16, 2009 9:07 AM

Similar Messages

  • Add query to Main menu in SAP 2007

    Hi all!
    Can i add query to main menu in SAP 2007. Now, i only add done query to My menu.
    Thank you!

    Hi Tien,
    You cannot add the Query to the main menu.you can try the other way round. Paste the query in the crystal report and then check the report is comming OK. Then add it to the main menu via crystal Reports.
    Regards,
    Raj

  • What are the CSS selectors for the FireFox 4 Main Menu?

    What are the CSS selectors for the FireFox 4 Main Menu?
    [http://img228.imageshack.us/img228/5512/ff4menubar.gif http://img228.imageshack.us/img228/5512/ff4menubar.gif]

    Still the same as in Firefox 3.5 and 3.6 versions:
    <pre><nowiki>#main-menubar
    #file-menu
    #edit-menu
    #view-menu
    #history-menu
    #bookmarksMenu
    #tools-menu
    #helpMenu
    </nowiki></pre>

  • Using a background image for the buttons in spry menu

    Hi All,
    Going nuts here.
    I'm using the vertical spry menu widget w DW CS3 and trying
    to alter the css style sheet, so that I can use a li class for each
    of the 14 links on this page, with an upstate and a hover state
    only. (the focus, and hover while down will be the same as the
    others, to keep it simple and not too distracting)
    The page is here that I will be replacing the entire
    background image in sidebar1 and sidebar2 with a custom spry menu
    with the 14 li classes for 2 seperate menus:
    http://audibleimagesav.com/blank_doc.html
    Has anyone used a background image in place of just using
    bkgrd colors and borders for the spry menu ?
    I am aware of the attributes that the help docs suggest that
    need to be altered as listed here :
    http://livedocs.adobe.com/en_US/Spry/1.4/help.html?content=WS0BB04E11-1BE3-4a67-BC94-BE7DA 93A0159.html
    I have been working on just an experimental page, that is now
    hacked up, however if you want to see that it is here with only the
    first list item coded:
    http://audibleimagesav.com/site%20theme%20ideas/sprymenu_exp.html
    The spry css menu widget for that page is here:
    http://audibleimagesav.com/SpryAssets/SpryMenuBarVertical.css
    So in short, has anyone done a bkgrd image for the main menu
    (not submenu) in a spry widget?
    Thanks in advance.
    Art
    Art Hansen
    Web Design & Marketing
    http://www.innova-techsolutions.com
    321.750.3852 - Cocoa Beach, Florida, USA

    http://meyerweb.com/eric/css/edge/popups/demo2.html
    Maybe

  • Can't get audio in main menu only

    Hello, I'm new to iDVD and when I try to add audio to my main menu, it won't playback. The songs I have chosen for the two submenus play fine but no matter how many times I delete and re-add the file to the main menu, it just won't play. I'm importing the tune from iTunes. It's not the song because any song I try to add to the main menu won't play. Argh!

    OK, I have a question - when you all are talking about using this for work and for projects... are these for internal presentations and such? Because if you are selling them, say as video or photo projects, that does seem like violations of music copyright and exactly what Apple is trying to stop with this crazy authorization business.
    I don't mean to sound judgmental, but it has just seemed strange as I am reading these threads, of all the people with work projects due and such.
    In my case however (and again, not to sound all high and mighty), I am using iLife just as Apple intended... for home movies of my kid and I burn exact 3 copies of it, one for us and 2 for the grandparents... and this iTunes restriction is ridiculous in those terms. If they were to place burning restrictions, they should have done it similarly to the CD burning, where you could only make a limited number of copies and such.
    I am so so so so so so so disappointed.
    And going back to iLife 06.

  • Don't wanna album artworks keep floating on the main menu

    Is there any way to disable album artworks keep floating on the main menu of iPod classic?
    I think Apple should give us a choice to disable this function with next iPod firmware update.
    Some album artworks I don't want to show up there. And the key point is, the resolution of all my album artworks are 200 x 200. It is really enough for my 5G iPod video. But for my new iPod classic, all artworks would be force to enlarge the size for floating on the main menu like screensaver, and they look really crap.
    And I think those new default icons on iPod classic are really nice and that's what I prefer to show

    Given the resolution you've got them at, the other occurances of them in the UI - like CoverFlow and album art when a track is playing - also probably look not great.
    Turn of the option of synching them completely via the Music tab for the iPod in iTunes. Gets rid of the issue completely - and as you say leaves more useful icons in some places.

  • How to add a privacy page and exclude it from the main menu, but include in links at the base

    adding a privacy statement page and excluding it from the main menu, but including in links at the base of site

    Right click on the page in Plan view and choose to exclude from menus. This will take it off your main nav.
    For your bottom nav, change the menu to manual and add the privacy page manually.

  • Adding A Separate Background Image For Each Menu Item

    I asked this in the Spry forum, and not sure I understand the answer. Plus, I should have been more specific in asking how to do it, as I'm still pretty new to this stuff. Nothing I'd found indicated it could be done, or how.
    Org question -
    I know you can apply a background image to the menu bar items, but is it possible to add a background image for each individual item? What I'm basically trying to keep are the effects (bevel/emboss, etc.,) that I attached to the text, when I created it in PS CS4.
    Answer -
    Yes you can. The widget is just normal plain html markup so you can just add other classNames or id attributes to the elements. And style the elements through those classes/ids.
    Does this mean I'd have to write a new rule for each menu item? What?
    Thank you.

    Did an Adobe Tutorial for creating/entering a Spry Menu Bar. This is the HTML, after I took out the submenus.
    <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="news.html">Features</a></li>
          <li><a href="news.html">News</a></li>
          <li><a href="news.html">Fashion</a></li>
          <li><a href="news.html">Lifestyle</a></li>
          <li><a href="news.html">Calendar</a></li>
        </ul>
    This is from the SpryMenuBarHorizontal.css (It seems like I need to make changes in the Design Info section of this code. But nothing I've tried has worked):
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    cursor: default;
    width: auto;
    text-transform: uppercase;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
    z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: relative;
    text-align: left;
    cursor: pointer;
    width: 7em;
    float: left;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    z-index: 1020;
    cursor: default;
    width: 8.2em;
    position: absolute;
    left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
    left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
    width: 8.2em;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
    position: absolute;
    margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
    left: auto;
    top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
    border: 1px solid #CCC;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
    display: block;
    cursor: pointer;
    background-color: #EEE;
    color: #333;
    text-decoration: none;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
    background-color: #33C;
    color: #FFF;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
    background-color: #33C;
    color: #FFF;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
    background-image: url(SpryMenuBarDown.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
    background-image: url(SpryMenuBarRight.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
    background-image: url(SpryMenuBarDownHover.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
    background-image: url(SpryMenuBarRightHover.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
    position: absolute;
    z-index: 1010;
    filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarHorizontal li.MenuBarItemIE
    display: inline;
    f\loat: left;
    background: #FFF;

  • Removing add-on menu from the Main menu in SAP B1

    Hi ALl
    I developed an ADD-ON for SAP B1. It starts and stops properly.
    But When I stop Add-On it still appear in the main menu as a menu which not desirable, I want to remove that menu also when I stop it.Pls help me on that matter
    Thanks
    Padma

    Hi Padma,
    You have to catch the Application event and in the aet_ShutDown event put the michel's code
    public static void Init()
    oApplication.AppEvent += new SAPbouiCOM._IApplicationEvents_AppEventEventHandler(OnApplicationEvent);
    static void OnApplicationEvent(SAPbouiCOM.BoAppEventTypes EventType)
                if (EventType == SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition)
                    //Remove the menu
    SAPbouiCOM.Menus oMenus;
    oMenus = SBO_Application.Menus;
    oMenus.RemoveEx("MenuUID");
                    Application.Exit();
                else if (EventType == SAPbouiCOM.BoAppEventTypes.aet_ShutDown)
                    //Remove the menu
    SAPbouiCOM.Menus oMenus;
    oMenus = SBO_Application.Menus;
    oMenus.RemoveEx("MenuUID");
                    Application.Exit();
    Best regards,
    Jesús Medina

  • For Making iDVDs: How to do I set my videos so they automatically transition to the next video instead of going back to the main menu every time?

    Hello out there!
    Im trying to create a magic iDVD and I have some difficulty navigating my options. Some of my video's that I'd like to add are very short clips and I'd like view them back to back without having to go back to the main menu everytime after every short video clip. For example: a 1:08 minute video of my daughter's birthday and then a 3 minute video of her bithday...how do I make it so the 1:08 minute video automatically transitions to the 3 minute video without me having to go back to the main menu to manually select the next video?
    Please advise! Thank you so much
    citule

    You can't.  But (there's always a but) if you have enough room (i.e. playing time) available in the project you can create a slideshow in iDVD
    and add all of the videos to it.
    If you do that set the Slide Duration time to anything except Manual or Set to Music.  Also do not select an transition.
    When you click on the Create Project button in Magic Movie you'll be able to use the "+" button to add the slideshow to the top menu. 
    OT

  • I have a new MacBook(2012). Being a new Mac user, I do not know what to do when Safari doesn't open at all. The icon just bounces up and down and when the cursor is on the top main menu bar it is the spinning rainbow wheel.  Any ideas for help?

    When I try to open safari the icon stats bouncing and then nothing happens other than the cursor turning to a spinning rainbow wheel when it hoovers on the top main menu bar. I have shut down and restart several times. My safari worked yesterday and then today this, but with. I indication of a problem. I can't even get the browser window to open so that I can clear caches or reset anything. When I opened my computer this time I don't even get a bouncing icon. No recognition of selecting the program at all. If I go to spotlight and try to open safari from here I still get no response. Can you help?

    Hi ...
    If you have moved the Safari application from the Applications folder, move it back.
    As far as the cache goes, there's a work around for that when you can't empty the Safari cache from the menu bar.
    Go to    ~/Library/Caches/com.aple.Safari.Cache.db.  Move the Cache.db file to the Trash.
    Try Safari.
    Mac OS X (10.7.2)   <  from your profile
    If that is corrrect, you need to update your system software. Click your Apple menu icon top left in your screen. From the drop down menu click Software
    Update ...
    ~ (Tilde) character represents the Home folder.
    For Lion v10.7x:  To find the Home folder in OS X Lion, open the Finder, hold the Option key, and choose Go > Library

  • I am trying to make a main menu for my project but I don't know where IDVD is located?

    I am trying to make a main menu but I read some info. and said I have to do it through IDVD and I tried it but can not find IDVD anywhere so I wanted to know if I have to purchase it or something and I also wanted to know how to create a main menu?

    depends on how old your Mac is ...
    newer machines do not come along with a pre-installed  iDVD (.. and iWeb ..) anymore; you have to purchase a boxed version of iLife11.
    if somehow iDVD is installed on your Mac, you should find it in your Apps-folder
    (or use Spotlight, search for iDVD) ...-

  • How to block the Form Settings for Main Menu to use ONLY "My Menu"?

    Hi everyone:
    Our customer wants to define an User Menu (My Menu) for each B1 user within the company and restrict the Modules at main menuu2026
    How can I block the Form Settings for the Main Menu?... It is possible to give an user Only access to My Menu and denied Authorization to the Modules?. 
    I appreciate your help!!. Thanks very much
    Claudia Gutiérrez

    Hi,
    'My Menu' refers to the third tab on the Main Menu, and the
    authorization of 'Organize My Menu' works as below:
    - Full Authorization: Allows the user to access the Organize User Menu
      window (Tools -> User Menu -> Organize) and customize the menu.
    - No Authorization: The user cannot open this window.
    Check the Note  [1062635|https://websmp130.sap-ag.de/sap(bD1odSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1062635] if you are looking for it.
    Regards,
    Jitin
    SAP Business One Forum Team

  • How can I add the logo image for a single item in an RSS feed?

    Hello,
    I am an administrator of iTunes U at the University of Minnesota.
    Before transitioning new public site, we are trying to figure out how to put a logo image into RSS feeds.
    We use our server to makes xml codes to create RSS feeds for podcasts.
    We successfully put a logo image for a collection in a RSS feed, but putting a logo image for a single item did not work.
    Below is the part of the xml code for the logo image for a single item, which is created by our server. I deleted other parts of xml code for your convenience.
    <item>
    <title>Plagiarism</title>
    <itunes:image href="http://picture.funnycorner.net/funny-pictures/6041/dolphin-vs-cow-swimmin g-contast.jpg" />
    <enclosure url="http://mediamill.cla.umn.edu/mediamill/download.php.mp3?file=87504.mp3" length="8544508" type="audio/x-mp3" />
    <guid>http://mediamill.cla.umn.edu/mediamill/download.php.mp3?file=87504.mp3</guid>
    <image></image>
    </item>
    We tried both <itunes:image href="http://picture.funnycorner.net/funny-pictures/6041/dolphin-vs-cow-swimmin g-contast.jpg" /> or <image>http://picture.funnycorner.net/funny-pictures/6041/dolphin-vs-cow-swimming-conta st.jpg</image>.
    Both did not work.
    Can anyone help?
    Thank you for your help in advance!!
    Seogjoo

    Haven't created too many podcasts, but in this one
    http://itunes.apple.com/us/podcast/connecticut-college-sculpture/id372414245
    or
    itpc://video.conncoll.edu/d/sculptures/index.xml
    before we included the audio files, we added the images in iTunes.
    Select the file, then go to File>Get Info, here you can add metadata, and in Artwork add an image.
    Then upload this file to your server. Works for audio files anyways.
    You don't see the image in the web podcast, but you do in iTunes after you download each item, in "Show item artwork" in lower left. Click on the image and it zooms out.

  • Using the value "Image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of preconfigured file types (.jpe, .jpg, .jpeg, .?

    On a form, using the value "image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of pre-configured file types (.jpe, .jpg, .jpeg, .gif, .png, .bmp, .ico, .svg, .svgz, .tif, .tiff, .ai, .drw, .pct, .psp, .xcf, .psd, .raw)?
    Say I wanted to add .gif, .jfif or .ico. I find this array limited, how can I add types to image?
    <input type="file" name="file" accept="image/*" id="file" />
    mimeTypes.rdf does not seem to allow this.

    ''mimeTypes.rdf'' has nothing to do with web development. It's a file that stores your file handling preferences (e.g. if you want ZIP files automatically saved or opened).
    You can't change the file types of the pre-defined content specifiers (audio/*, video/*, image/*), but you can specify additional MIME types. To add PDF to your above example,
    <pre><nowiki><input type="file" name="file" accept="image/*,application/pdf" id="file" /></nowiki></pre>
    For details, see
    * [https://developer.mozilla.org/En/HTML/Element/Input developer.mozilla.org/En/HTML/Element/Input]

Maybe you are looking for

  • How do i use F buttons on macbook pro

    how do i use f buttons on macbook pro? is it alt+f12 or cmd...totally clueless! -.-' can i use f buttons if using citrix on a windows platform opened on mac ??? thanks.

  • Send e-mail when i make changes in my report..

    is it possible to send email to the particular users (e-mails) ? this email must contain information about insert, update and delete actions in my report.. any ideas?

  • Saving Website versions

    Can you save version files while testing what works best. can you make up several different webistes and load the one to use at any point in time ?? My website is slow loading and want to see how to speed up ? Declan

  • Classloader and Sun One Application Server 8

    Hello. The problem is that it is impossible to load the digester at application level. Instead of it the digester at application server (Sun One Application Server 8) level is loaded. How can I change the situation? Thanks.

  • Installing Oracle Text in 9i

    I'm attempting to create the neccessary object for the CTXSYS user and am missing the LIBCTXX*.* file. Where do I find it?