Option Menu populating/manipulating

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Option Menu populating/manipulating

Post by gyroscope » Wed May 07, 2008 7:46 pm

Hi, I've been trying to work out these for a while now:

Edit: populating/manipulating via a button script I've worked out now, thank you...

Still can't find out how to do this though:

Let's say, for example, that the longest menuItem is 200px and the menu button is 300px. I can centre the menuItems themselves, but is there a way to now centre these centred menuItems with the button width that contains them?

--Pseudocode
set menuItem 1 to -1 of button "Option Menu" to center of button "Option Menu"

I'd appreciate help, thank you.

:)

Post Reply