Replicate Help Menu

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
lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Replicate Help Menu

Post by lohill » Tue Apr 09, 2013 12:27 am

If I have a Help Menu in my main stack that I would like to have as the Help Menu for all my substacks, can you suggest the best way for me to do that? By 'best way' I think I mean the easiest way without damaging the other menus.

Thanks,
Larry

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Replicate Help Menu

Post by dunbarx » Tue Apr 09, 2013 1:45 am

Hi.

Do you want to modify the help menu? This is just a button with return delimited contents, in a special group that has its menubar property set to the name of the group. Are you familiar with this methodology?

So all you need to do is to duplicate that group to any of your substacks. Or if you already have it, make sure the "help" pulldown is the same.

Craig Newman

lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Re: Replicate Help Menu

Post by lohill » Tue Apr 09, 2013 4:49 pm

Hi Craig,

My problem is that I don't want to duplicate the entire Menubar group in each substack. I only want to to take that Help button from the Main stack and use it to replace the Help button on each of the substacks without damaging any of the other buttons associated with the menubar group on those substacks. Does that make sense?

Larry

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Replicate Help Menu

Post by dunbarx » Tue Apr 09, 2013 7:35 pm

Larry.

Sure. Just take the contents of the "help" menu button in your mainStack, and load that into the "help" menu button in another stack:

put btn "help" of stack "yourMainStack" into btn "help" of stack "yourSubStack"

The contents of a pulldown button are the menuItems of that button. These can be changed at any time, including on the fly under script control.

Craig

lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Re: Replicate Help Menu

Post by lohill » Tue Apr 09, 2013 10:37 pm

Thanks Craig,

That was just what I needed.

Regards,
Larry

Post Reply