Re: Stack Height/Menubar

2018-11-18 Thread Rick Harrison via use-livecode
Nice, I didn’t know it would work on locked controls. This app was originally for iOS so that was what caught me. Thanks again, Rick > On Nov 18, 2018, at 12:58 PM, J. Landman Gay via use-livecode > wrote: > > Scripts can move locked controls, so you won't have to worry about that. If >

Re: Stack Height/Menubar

2018-11-18 Thread J. Landman Gay via use-livecode
Scripts can move locked controls, so you won't have to worry about that. If the groups are shared (background groups) their content will move with them and the script won't touch those buttons. It will also move card groups, so you may need to check for the content controls in that case. You

Re: Stack Height/Menubar

2018-11-18 Thread Rick Harrison via use-livecode
Hi Jacqueline, Thanks for pointing out this routine. I have some modifications I need to make to it though. I have to check to see if any items are locked, and unlock them before changing the location and then re-lock them after the change. The number of controls also includes groups

Re: Stack Height/Menubar

2018-11-17 Thread J. Landman Gay via use-livecode
On 11/17/18 12:49 PM, Rick Harrison via use-livecode wrote: Does anyone have a nice routine which will compensate for the change in layout by moving all other objects farther down? I thought I saw a mention this before. on pushDown repeat with x = 1 to the number of bgs set the top of bg

Re: Stack Height/Menubar

2018-11-17 Thread Rick Harrison via use-livecode
After hours of playing around with this problem, it looks to me like a Menubar has to be shifted into that upward position in order for it to work in a standalone. (If you can prove me wrong on this please proceed! I would love to see a work around that really works!) (This seems a bit crazy

Re: Stack Height/Menubar

2018-11-16 Thread Rick Harrison via use-livecode
Hi Bob, I tried your suggestion. No luck on that. I also tried not using a sub-stack and put the menu in the normal stack on a different card that I wasn’t using. It works fine in the IDE but not in a standalone version. In the standalone it keeps giving me the default Menu instead of the one

Re: Stack Height/Menubar

2018-11-16 Thread Bob Sneidar via use-livecode
Try referencing the card as well. set the defaultMenubar to the long ID of group “MyMenuBar” of of card of stack “MenuBarSubStack” Bob S > On Nov 15, 2018, at 21:41 , Rick Harrison via use-livecode > wrote: > > Hi Klaus, > > I found that: > > set the defaultMenubar to group “MyMenuBar”

Re: Stack Height/Menubar

2018-11-16 Thread Klaus major-k via use-livecode
Hi Rick, > Am 16.11.2018 um 06:41 schrieb Rick Harrison via use-livecode > : > > Hi Klaus, > > I found that: > set the defaultMenubar to group “MyMenuBar” of stack “MenuBarSubStack” (Does > not work.) > but > set the defaultMenubar to the long ID of group “MyMenuBar” of stack >

Re: Stack Height/Menubar

2018-11-16 Thread Terence Heaford via use-livecode
Hi Klaus, What an excellent suggestion. Copied my menubar to a card that I never use and pointed everything to that and its associated scripts and this has now sorted the problem. Named my Card “MenusAndImages”. Keep my button icons here as well. Sorted. Thanks for your help Terry > On

Re: Stack Height/Menubar

2018-11-15 Thread Rick Harrison via use-livecode
Hi Klaus, I found that: set the defaultMenubar to group “MyMenuBar” of stack “MenuBarSubStack” (Does not work.) but set the defaultMenubar to the long ID of group “MyMenuBar” of stack “MenuBarSubStack” (works!) Although when I create the standalone it stops working. I think it is not

Re: Stack Height/Menubar

2018-11-15 Thread Bob Sneidar via use-livecode
I did not know that! Bob S > On Nov 15, 2018, at 10:43 , Klaus major-k via use-livecode > wrote: > > Menubars on macOS have some caveats: > 1. Last menuitem in your HELP menu should read: About XXX(Your app)... > and will go as first menuitem into the application menu > > 2. Last menuitem

Re: Stack Height/Menubar

2018-11-15 Thread Klaus major-k via use-livecode
Hi Rick, > Am 15.11.2018 um 19:27 schrieb Rick Harrison via use-livecode > : > > Hi Klaus, > > This sounds like it could be a good solution. > Unfortunately after trying to do it several ways > I can’t seem to get it to work. > > Could you be a little more specific about what > exactly you

Re: Stack Height/Menubar

2018-11-15 Thread Rick Harrison via use-livecode
Hi Klaus, This sounds like it could be a good solution. Unfortunately after trying to do it several ways I can’t seem to get it to work. Could you be a little more specific about what exactly you are doing? Are you setting the defaultMenuBar with a script, or are you just checking the

Re: Stack Height/Menubar

2018-11-15 Thread Bob Sneidar via use-livecode
I'm going to have to give that a try. I have standard menus, with additional menus depending on the module. I already have a script where I can add and remove menus on the fly and reposition all the buttons, so it wouldn't be difficult to set the menubar the way you are doing it, then add the

Re: Stack Height/Menubar

2018-11-15 Thread Bob Sneidar via use-livecode
I do not have that problem. I have objects well into that space. I have a status bar for displaying progress messages 9 pixels from the bottom of each card. That being said, I do set the size of my windows by script when they open, because I had an issue with it between Windows and Mac. Windows

Re: Stack Height/Menubar

2018-11-15 Thread J. Landman Gay via use-livecode
I haven't needed to create menubars for some time, but this is how it has always worked in the past: LiveCode menus are objects that take up room at the top of a card. On Windows, this is standard; menus appear at the top of each window. When the same stack is run on a Mac, LiveCode pushes

Re: Stack Height/Menubar

2018-11-15 Thread Brian Milby via use-livecode
Did you try turning "Set as stack menu bar" off and back on? When I do that, the stack size changes. Or you could do what Klaus mentioned. On Thu, Nov 15, 2018 at 10:26 AM Terence Heaford via use-livecode < use-livecode@lists.runrev.com> wrote: > This is fair enough but you still cannot put

Re: Stack Height/Menubar

2018-11-15 Thread Klaus major-k via use-livecode
Hi Terry, > Am 15.11.2018 um 17:26 schrieb Terence Heaford via use-livecode > : > > This is fair enough but you still cannot put anything in the bottom 22 of a > visible card on screen. > Try dragging an object to the card and it will not allow you to place it in > the bottom 22 of the card

Re: Stack Height/Menubar

2018-11-15 Thread Terence Heaford via use-livecode
This is fair enough but you still cannot put anything in the bottom 22 of a visible card on screen. Try dragging an object to the card and it will not allow you to place it in the bottom 22 of the card (LC 9.0.1) Thanks Terry > On 15 Nov 2018, at 15:37, Paul Dupuis via use-livecode >

Re: Stack Height/Menubar

2018-11-15 Thread Paul Dupuis via use-livecode
Look at the 'effective' keyword in the dictionary The effective rect of a stack includes the borders and titlebar. The rect of a stack is just the interior size available for card and controls.. The difference gives you the border sizes and titlebar sizes. You can also use 'effective' with ofther

Re: Stack Height/Menubar

2018-11-15 Thread Terence Heaford via use-livecode
This all basically means you can’t place anything in the bottom 22 of the card. Terry > On 15 Nov 2018, at 15:03, Terence Heaford via use-livecode > wrote: > > This post is regard the use of Livecode on MacOS(LC 9.0.1) > > When you set the height of this stack to 800 (for example) > > The

Stack Height/Menubar

2018-11-15 Thread Terence Heaford via use-livecode
This post is regard the use of Livecode on MacOS(LC 9.0.1) When you set the height of this stack to 800 (for example) The height of this card in the property inspector is 822 and is also returned as 822 in script. This seems to be as a result of the menubar position on none mac systems. I