Need help regarding Menu bar appearance

Hi,

I’m facing few problems with MenuBar appearance. I am unable to do the following tasks on the menubar.

  1. need to add an image to the main menu
  2. make the menu buttons edges rounded
  3. need to move only 1 menu item from the menu on the right end of the screen.

thanks

  1. Do you mean you would like to add a background image to the menu? Or do you want to add icons to a menu item?

  2. You can do this by setting the Menubar.buttonConstructor property to “StretchImgButton”, and then providing media for the buttons. Take a look at the Skinning Guide for more information.

  3. I’m not sure what you mean here. Could you provide further explanation, or code, or perhaps a screenshot to illustrate the behaviour you’d like to see?

  1. I am trying to add icons to the main menu item. I tried adding it by using icon:“images/i4.png” but am not able to see the image.
    Image should appear next to the logout menu item.

I want to add a menu item called Logout which should be a part of the main menu but should appear on the right corner of the screen.
The Menu appears to be something like this as shown below.

File Window Help ------------------------------------------------------------------------------------------------------ Logout
-New -Insert
-Open -Properties

  1. check your server-side logs to see what URL the image is being requested from. By default, supplying “images/i4.png” will go to “images/images/i4.png” because that is the default for AppImgDir - see the Skinning Guide for details

2 (or 3). Because Menubar is a Layout subclass, you can add a LayoutSpacer in the middle of the Menubar.buttons Array, with width:“*”