Text menu in runtime

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
AlexAdams
Posts: 38
Joined: Sat Jan 17, 2009 8:49 pm
Contact:

Text menu in runtime

Post by AlexAdams » Fri Aug 28, 2009 10:32 pm

I would like to include the Text menu from the IDE in some of my stacks. I have a menu bar for each window. How do I get it to include the Text menu?

Thanks,
Alex Adams
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Aug 29, 2009 9:22 am

Dear Alex,

You can copy the Text button of group "revMenubar" of stack "revMenubar" to group "Menubar 1" of your own stack. After enabling all lines in that menu button, it will work (delete the left brackets in the menu item names). You will need to copy a part of the script of group "revMenubar" to your own menu bar if you want to adjust the contents of the Text button dynamically on mouseDown.

I haven't tested whether the scripts in the Text button break at some point after copying it to your own stack.

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

AlexAdams
Posts: 38
Joined: Sat Jan 17, 2009 8:49 pm
Contact:

Thanks Mark

Post by AlexAdams » Sat Aug 29, 2009 9:39 pm

Thanks Mark,

I'll give this a try.
Alex Adams
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013

Post Reply