menu woes...

Richard Gaskin ambassador at fourthworld.com
Tue Dec 28 20:08:55 EST 2004


Chipp Walters wrote:
> Actually what I want is for there to be NO stack resizing on either 
> platform. Seems like a pretty easy request, but I can't figure out how 
> to make it happen. I can reset the stack to the correct height on the 
> Mac, but doing so still doesn't move everthing down so that it is visible.

Technically, it sounds like what you want is _some_ resizing, but 
limited to cropping and scrolling to hide the menubar on Mac OS, is that 
correct?  Or do you want those menus showing in the window a la all 
non-Mac systems?

> It's a Main stack. Do you know in MC if setting the menubar property 
> automatically resizes the stack? I'm wondering if this is a Rev only 
> problem?
>
> Also, I'm not using GM, using my own layout manager, which I can turn 
> off and on. It's not interferring.

That narrows down possible causes.

The crop-and-scroll of a stack to accomodate the menubar is an automatic 
engine behavior when the stack's menuGroup property contains the name of 
a group that exists in the stack.  When it works well it's a joyful 
thing of beautiful simplicity:  set one property and the same stack 
design works automatically on both platforms, cropping the stack and 
scrolling the card contents up to match.

If you want the menus to appear in the stack set that property to empty 
and you should be fine.

If you want the traditional menus-in-the-menubar Mac thang double-check 
that the menuGroup property refers to the correct group object, and 
double-check that its bounds do not extend below where you want the 
cropping to happen.

Here's what should be happening:


Windows -- All objects shown, card height matches stack height:

  ------------------------------------
| Window Title                       |
--------------------------------------   ---
| File  Edit  Help                   |     |
--------------------------------------     |
|                                    |   card
| Content region                     |     |
|                                    |     |
--------------------------------------   ---



Mac - When the menugroup property is set the stack is cropped and the 
card scrolled up to hide menus, which are drawn in the system's menu bar:

  ------------------------------------    ---
| Window Title                       |     |
--------------------------------------     |
|                                    |   card
| Content region                     |     |
|                                    |     |
--------------------------------------   ---


It may be the case that there's something up with making a menuless 
stack and adding menus on Win first, but here's what I'd do to make sure 
it's as hunky dory as possible:

Take it over to Mac, turn on the editMenus property so everything is 
shown just as it is on Windows, adjust the layout if needed, and save.

The menuing mechanism has a couple of obscure bugs, but all of my apps 
have menus that work well on both platforms so I have high confidence in 
it.  If these things don't take care of the issue feel free to send it 
to me if it's small and I'll see what I can determine.

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________________
  Ambassador at FourthWorld.com       http://www.FourthWorld.com


More information about the use-livecode mailing list