Joel,

 

You have access to all of the menuBarItems using the menuBarItems property of a menuBar. So, to put a little extra room in front of each menuBarItem, I did something like this:

 

  private function changeMenuBarItemLayout():void

  {

      var n:int = Comp3.menuBarItems.length;

      for(var i:int=0; i < n; i++)

      {

          myMenuBar.menuBarItems[i].setStyle('textIndent', 20);

          myMenuBar.menuBarItems[i].width = Comp3.menuBarItems[i].width + 20;

      }

  }

 

Play with that and hopefully, it will give you the flexibility/control that you need.

 

Joan

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Joel Provinsal
Sent: Monday, August 28, 2006 1:09 PM
To: [email protected]
Subject: [flexcoders] menuBar Spacing

 

This is probably a simple question, but I will proceed anyway. I have two
issues using the menuBar component:

1. Can I indent from the left to leave a bit of room for an icon? The
menu bar is 100% across the very top of my application.
2. Can I decrease the spacing between the menu items to have more of a
"windows" type appearance instead of having the great divide between each
item? I used textIndent, but it was truncating my text :/

Cheers,

joel

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to