Improving the style of menu bar

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kaveh1000
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 539
Joined: Sun Dec 18, 2011 7:23 pm
Contact:

Improving the style of menu bar

Post by kaveh1000 » Fri Mar 01, 2019 9:25 pm

I am creating a menu bar using "Menu Builder". It works well, but the style is very basic when the menu is inside a stack. When it is set as the stack menubar, it looks good as it takes on the theme of the operating system. Please see attached screenshot of the two cases.

Is it possible to have the style more like the option menu that you can see in the background on the left?
Attachments
menus.png
Kaveh

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Improving the style of menu bar

Post by bogs » Fri Mar 01, 2019 9:59 pm

Try this suggestion from Craig, then it can look like whatever you can think up :D
Image

kaveh1000
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 539
Joined: Sun Dec 18, 2011 7:23 pm
Contact:

Re: Improving the style of menu bar

Post by kaveh1000 » Fri Mar 01, 2019 11:30 pm

Thanks. Great to know we can put icons in menus :-) But I juts want to have the look and feel of the option menu that naturally takes on the mac style...
Kaveh

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Improving the style of menu bar

Post by bogs » Fri Mar 01, 2019 11:56 pm

kaveh1000 wrote:
Fri Mar 01, 2019 11:30 pm
Thanks. Great to know we can put icons in menus
Um, no :D

The idea is that you can use a stack as the menu, and make the stack itself resemble anything you want, macs menus, windows menus, linux menus, colors, icons, etc.
Image

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Improving the style of menu bar

Post by jacque » Sat Mar 02, 2019 5:46 pm

LC calls on the system to draw menubars appropriate to the OS. Since Macs don't put menus inside the window, there's no method to accommodate that. Is there a reason you'd need to move the menus to the stack itself on Mac? Depending on what you want to do, there may be other more native ways.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

kaveh1000
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 539
Joined: Sun Dec 18, 2011 7:23 pm
Contact:

Re: Improving the style of menu bar

Post by kaveh1000 » Sat Mar 02, 2019 5:52 pm

Thank you Jacqueline. That makes sense. The reason is that this is a substack and I wanted the menus to separate to the mainstack.

I guess I can just play with the styles to make them look better...
Kaveh

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

Re: Improving the style of menu bar

Post by Klaus » Sat Mar 02, 2019 5:58 pm

Hi Kaveh,

you can have one or even more different menus for each stack, like the different menus in the IDE
and in the "Script Editor" on the Mac, if that is what you mean.

Check "menubar" and "defaultmenubar" in the dictionary.


Best

Klaus

Post Reply