Script should detect the width of the longest menu entry

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
Marc-Andre.Roberge@mus.ul
Super Advanced
Super Advanced
Posts: 47
Joined: Sun May 19, 2002 7:23 pm
Location: Québec, QC, Canada
Contact:

Script should detect the width of the longest menu entry

Post by Marc-Andre.Roberge@mus.ul »

I am currently testing version 3.2.0 and would like to see the following feature added to a next release. Instead of having to find the width in pixels of the longest entry in any given menu or submenu by trial and error and hardcoding it in the script, it would be nice if the script did the job for us, i.e., if it determined how wide the drop-down panel should be, including an appropriate padding on the right. This would make creating and modifying menus much easier. Or is there a formula I can use to determine the width in pixels on the basis of the number of characters?
goldmann@aktiv.de
Beginner
Beginner
Posts: 2
Joined: Sun May 19, 2002 7:24 pm

Re: Script should detect the width of the longest menu entry

Post by goldmann@aktiv.de »

the menu DOES make the width match the longest menu entry, despite what you set the width it will expand to accomodate a larger entry. I'm not sure why you are asking for something it already does... just leave the width blank and it will scale to fit.
cheers,
Yadin
jack@netcot.com
Beginner
Beginner
Posts: 9
Joined: Sun May 19, 2002 7:24 pm

Re: Script should detect the width of the longest menu entry

Post by jack@netcot.com »

Yadin -

Then something's fishy somewhere. When I remove the width spec the menu does adjust, but does not take into account the arrow, as the arrow graphic winds up on top of the last character of the widest menu item.

John
Yellowg
Beginner
Beginner
Posts: 2
Joined: Sun Jun 09, 2002 8:23 am
Contact:

longest menu entry

Post by Yellowg »

I just add two nbsp's and I'm fine.

Hope it works for you
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

You mentioned 3.2.0. 3.4.08 is current. Why not catch up and take advantage of all the bug fixes and new features Andy has worked on?
John
Post Reply