copy menus to substack

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
kwinkler
Posts: 61
Joined: Fri Nov 26, 2010 5:59 am

copy menus to substack

Post by kwinkler » Sat Jan 01, 2011 3:37 am

I have created a menu bar in my main stack. I have a substack with a default menu bar. Is there any way to duplicate the menu bar from the main stack over to the substack, or do I have to recreate it piece-by-piece? Thanks for any advice.

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: copy menus to substack

Post by Klaus » Sat Jan 01, 2011 12:40 pm

Hi kwinkler,

since a "menu bar" is just a group of buttons, you surely can copy the whole group to your substack.
If that is what you mean.

I wish you a happy new year! :)


Best

Klaus

kwinkler
Posts: 61
Joined: Fri Nov 26, 2010 5:59 am

Re: copy menus to substack

Post by kwinkler » Sat Jan 01, 2011 3:50 pm

Happy New Year Klaus,

My first idea also was to copy the menu buttons to the substack, but they show up as a simple collection of buttons. They do not appear as a menu in the Menu Builder, where I would like to use "Set as stack Menu bar" to make them appear at the top of the screen on a Mac. I see there are a lot of menu commands available. Perhaps something like the 'menubar' command will allow me to group the buttons into a menu.

Regards,

Ken

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Re: copy menus to substack

Post by Janschenkel » Sun Jan 02, 2011 9:27 pm

Don't copy the individual buttons, copy the group they're contained in, and then set the 'menubar' property of the substack to the long id of that copied group.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

kwinkler
Posts: 61
Joined: Fri Nov 26, 2010 5:59 am

Re: copy menus to substack

Post by kwinkler » Mon Jan 03, 2011 4:15 am

Jan,

That sounds like what I need. I'll give it a try when I get back to work.

Ken

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: copy menus to substack

Post by Klaus » Mon Jan 03, 2011 1:11 pm

Hi Ken,
Klaus wrote:...you surely can copy the whole group to your substack...
That's what I wrote! 8)


Best

Klaus

Post Reply