editMenus Problem

Rick Harrison harrison at all-auctions.com
Wed Jun 5 21:14:01 EDT 2002


Hi there,

I have four menus that I switch between depending on the
Computer Platform/OS and whether the user is registered
or not registered.  When I switch menus, the editMenus
property apparently gets set to true somehow without my
specifying it to be done, which of course screws up my window
size etc.  If I try to set the editMenus property for the
new menubar that I've set, it doesn't fix it.  The only way
to set the editMenus back to hide the menubar is to set it
back to the first menu again, and to set the editMenus
property back to false.

Example:

    set the menuBar of this stack to "MacUnRegisteredMenubar"

 (hides the first menu fine because by default editMenus is set to false.)


    set the menuBar of this stack to "MacRegisteredMenubar"

 (The window gets resized...yuk!)

    set the editMenus of this stack to false

   (This doesn't work.. yuk!!)

Only

    set the menuBar of this Stack to "MacUnRegisteredMenubar"
    set the editMenus of this stack to false

 Fixes the window problem but puts me back to step one without a change
  in the menuBar. (double yuk!!)

Any ideas?  Thanks in advance!

Rick Harrison





More information about the use-livecode mailing list