advice on menubar for multi-window projects

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
rodneyt
Posts: 128
Joined: Wed Oct 17, 2018 7:32 am

advice on menubar for multi-window projects

Post by rodneyt » Mon Nov 30, 2020 4:32 am

Hi all,

If I have a project that has more than one stack window and I am building a system menubar, do I need to create one in each stack or can I create it in a separate (menubar only?) stack and have that menu apply all the time? Otherwise I presume as I change stack windows the menubars will change.

Some differences here between Windows and OSX. On OSX menubar will be system menubar, on other platforms menus will appear in the stack itself.

Is there a lesson, tutorial or other advice on this topic from people who have grappled with it before?

~ Rodney

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

Re: advice on menubar for multi-window projects

Post by dunbarx » Mon Nov 30, 2020 5:46 am

Hi.

I never do this, but a menubar in LC is a merely a group of buttons with certain properties. Read about them starting on page 178 in the user guide.

In order to have a custom menuBar "stick" when changing cards, you need to place that group on each card. For stacks, again, you will have to duplicate it for each one.

I think I have this right.

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10045
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: advice on menubar for multi-window projects

Post by FourthWorld » Mon Nov 30, 2020 7:13 am

Can you tell us a bit about what the windows do?

And is your main development done on Mac or Windows?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

rodneyt
Posts: 128
Joined: Wed Oct 17, 2018 7:32 am

Re: advice on menubar for multi-window projects

Post by rodneyt » Mon Nov 30, 2020 8:36 am

Hi Richard,
Yeah I think I will just put a menubar in both windows. Development is on Mac (levure-based app). For the first release it will be Mac-only as I am using Applescripts for the CRM integration and because this is really just an experimental project for me, so I don't want to get to far ahead of myself.

~ Rodney

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10045
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: advice on menubar for multi-window projects

Post by FourthWorld » Mon Nov 30, 2020 8:55 am

I think that's a good way to go. You'll need that for Windows anyway, since there the menu bar is attached to the top of the window.

Small world: I'm working on some CRM integrations myself lately. Might be fun to arrange a chat so I can learn what you've been doing since we last talked, and maybe share some tools if we find useful overlap.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

rodneyt
Posts: 128
Joined: Wed Oct 17, 2018 7:32 am

Re: advice on menubar for multi-window projects

Post by rodneyt » Mon Nov 30, 2020 9:45 pm

Sounds like fun, send me an email and we can make a time - rodney -at- oceanbrowser.com.

Post Reply