Full stack width 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
p4tr1ck
Posts: 36
Joined: Mon Jun 14, 2010 4:58 pm

Full stack width menu

Post by p4tr1ck »

I've noticed that on windows, the menu bar at the top of a stack doesn't go the full length of the stack. I know it is possible to do this because it is used on the script editor. I looked at the source of the script editor and I couldn't find anything...
Also, I've gotten a solution before, but it did some tricks and it didn't look like the authentic windows menu bar.
How is this done?
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Full stack width menu

Post by Mark »

Hi p4trick,

Just make sure that the width of the menubar group equals the width of the card + 2 and set the topleft of the group to -1,0.

Best,

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
p4tr1ck
Posts: 36
Joined: Mon Jun 14, 2010 4:58 pm

Re: Full stack width menu

Post by p4tr1ck »

Ah, I didn't think to use a group. Thanks. :)
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Full stack width menu

Post by Mark »

p4trick,

The menubar is a group.

Best,

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
Post Reply