Menu Woes

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Menu Woes

Post by teacherguy » Sun Jan 15, 2012 3:18 pm

I just can't seem to tame the menus. When I created my main menu, I told it not to increase the height of the stack. Now, when I make my standalones, the top of my stack is chopped. If I try to add height back, it adds it to the bottom of the window, which does me no good. Any way to correct this?

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

Re: Menu Woes

Post by Mark » Sun Jan 15, 2012 5:25 pm

Hi,

I think all those options in the menu builder should be left out. When you make a menu and you have objects in your stack already, you must move down those objects. You always need extra height of you add a menu. How else could you place your menu? You also should turn on the option "Set as stack menubar". On Windows, this shows the menubar in the window and on a Mac it shows the menubar on top of the screen.

The best way to correct this: use the menu builder to delete the menubar and try again.

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

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Menu Woes

Post by teacherguy » Sun Jan 15, 2012 6:43 pm

I have tried the "move items" down option when creating the menubar, but it completely destroys where everything on my card is currently placed. :roll:

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

Re: Menu Woes

Post by Mark » Sun Jan 15, 2012 6:46 pm

Hi,

What does "completely destroys" mean?

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

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Menu Woes

Post by teacherguy » Sun Jan 15, 2012 6:53 pm

Rather than everything moving down x number of pixels, some objects move 100 pixels or more, on top of other objects....

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

Re: Menu Woes

Post by Mark » Sun Jan 15, 2012 7:10 pm

Hi,

Do you have any scripts affeecting the location of objects, or are any plugins involved or are you using the geometry manager?

Kind 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

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Menu Woes

Post by teacherguy » Sun Jan 15, 2012 7:19 pm

No, not using geometry or scripts dealing with location. The only plugins are dropTools and the standard developer plugins that come with LC.

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

Re: Menu Woes

Post by Mark » Sun Jan 15, 2012 8:18 pm

Hi...

How many times have you tried to add and remove the menubar? 10 times? That makes 100-200 pixels :-) Delete the menubar the correct way, with the menu builder, restore everything to the correct location, and create the menu again, but this time the correct way.

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

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Menu Woes

Post by teacherguy » Sun Jan 15, 2012 8:38 pm

Yes, I'm sure that is what happened...it is remembering how many I've made and deleted incorrectly. At this point I have no menus showing in the menubuilder. I went ahead and created one like you said... I have a lot of cleanup to do now to get things restored, alas. Oh well, some mindless dragging of objects might be just what I need right now.

Thanks as always for your help.

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

Re: Menu Woes

Post by jacque » Sun Jan 15, 2012 10:01 pm

This just came up on the mailing list too:

http://runtime-revolution.278305.n4.nab ... 87833.html
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Menu Woes

Post by teacherguy » Sun Jan 15, 2012 10:43 pm

Thanks Jacque

Post Reply