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 
> 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 were right that if you know there will be a menubar it should be placed 
> first, or at least space should be reserved for it. I made the same mistake 
> the first time.
> 
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 were right that if you know there will be a menubar it should be placed 
first, or at least space should be reserved for it. I made the same mistake 
the first time.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 18, 2018 11:31:32 AM Rick Harrison via use-livecode 
 wrote:



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 which are made up of buttons
so I will have to modify my calculation
there.

I also read your informative links to
the other menu tutorials.

Thanks,

Rick


On Nov 18, 2018, at 12:58 AM, J. Landman Gay via use-livecode 
 wrote:


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 x to the top of bg x + 22
 end repeat
 repeat with x = 1 to the number of cds
   go cd x
   repeat with n = 1 to the number of cd parts
 set the top of cd part n to the top of cd part n + 22
   end repeat
 end repeat
end pushDown

This is from a HyperCard-to-LC conversion tutorial. "Parts" is a HC synonym 
for "controls", which you can substitute if you want. The default menubar 
height used to be 22, but change that number if you need to.


Tutorial covering menus is here:

And the above handler is here:


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 which are made up of buttons 
so I will have to modify my calculation 
there.

I also read your informative links to
the other menu tutorials.  

Thanks,

Rick


> On Nov 18, 2018, at 12:58 AM, J. Landman Gay via use-livecode 
>  wrote:
> 
> 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 x to the top of bg x + 22
>  end repeat
>  repeat with x = 1 to the number of cds
>go cd x
>repeat with n = 1 to the number of cd parts
>  set the top of cd part n to the top of cd part n + 22
>end repeat
>  end repeat
> end pushDown
> 
> This is from a HyperCard-to-LC conversion tutorial. "Parts" is a HC synonym 
> for "controls", which you can substitute if you want. The default menubar 
> height used to be 22, but change that number if you need to.
> 
> Tutorial covering menus is here:
> 
> And the above handler is here:
> 
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 x to the top of bg x + 22
  end repeat
  repeat with x = 1 to the number of cds
go cd x
repeat with n = 1 to the number of cd parts
  set the top of cd part n to the top of cd part n + 22
end repeat
  end repeat
end pushDown

This is from a HyperCard-to-LC conversion tutorial. "Parts" is a HC 
synonym for "controls", which you can substitute if you want. The 
default menubar height used to be 22, but change that number if you need to.


Tutorial covering menus is here:

And the above handler is here:


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 as it impacts the 
entire stack’s layout unless one planned 
for it at the very beginning of one’s design.
Most people wouldn’t do as this seems to 
be only an LC thing not really found in
other environments.)

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.

Thanks in advance,

Rick
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 I set.

Other ideas?

Thanks,

Rick



> On Nov 16, 2018, at 12:14 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Try referencing the card as well. 
> 
> set the defaultMenubar to the long ID of group “MyMenuBar” of of card 
>  of stack “MenuBarSubStack”
> 
> Bob S
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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” 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 finding the sub stack.
> 
> Your thoughts?
> 
> Thanks,
> 
> Rick

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 
> “MenuBarSubStack” (works!)
> 
> Although when I create the standalone it stops working.
> I think it is not finding the sub stack.
> 
> Your thoughts?

sorry, I really cannot remember anymore.

> Thanks,
> 
> Rick
> 
>> On Nov 15, 2018, at 1:43 PM, Klaus major-k via use-livecode 
>>  wrote:
>> Hi Rick,
>> 
>> I set "the defaultmenubar" by script "on openstack".
>> I never used it.
>> 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 of your "EDIT" menu (-> Preferences) will also go into the 
>> application menu -> Settings...
>> 3. Last menu of your "FILE" menu (-> Quit) will also go into the application 
>> menu.

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 15 Nov 2018, at 16:32, Klaus major-k via use-livecode 
>  wrote:
> 
> I ususally store my "menubar group" in a substack that will never be opened.
> Then I set "the defaultmenubar" of my stack to the name of that group and am 
> a happy camper,
> no more missing 22 pixels etc. on the Mac.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 finding the sub stack.

Your thoughts?

Thanks,

Rick



> On Nov 15, 2018, at 1:43 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Rick,
> 
> I set "the defaultmenubar" by script "on openstack".
> 
> I never used it.
> 
> 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 of your "EDIT" menu (-> Preferences) will also go into the 
> application menu -> Settings...
> 
> 3. Last menu of your "FILE" menu (-> Quit) will also go into the application 
> menu.
> 
> Best
> 
> Klaus
> 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 of your "EDIT" menu (-> Preferences) will also go into the 
> application menu -> Settings...
> 
> 3. Last menu of your "FILE" menu (-> Quit) will also go into the application 
> menu.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 are doing?  Are you setting the 
> defaultMenuBar with a script, or are you just checking 
> the button in the "Set as stack Menubar” in the Menu Builder?

I set "the defaultmenubar" by script "on openstack".

> I also noticed some weirdness with the Menu Builder

I never used it.

> when I put in a “Preferences” item in the first menu column.
> It will show up fine in the stack but when I check the
> “Preview” button it disappears from the Menu as though
> it was never there!

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 of your "EDIT" menu (-> Preferences) will also go into the 
application menu -> Settings...

3. Last menu of your "FILE" menu (-> Quit) will also go into the application 
menu.

> Suggestions?
> 
> Thanks, 
> 
> Rick 

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 button in the "Set as stack Menubar” in the Menu Builder?

I also noticed some weirdness with the Menu Builder
when I put in a “Preferences” item in the first menu column.
It will show up fine in the stack but when I check the
“Preview” button it disappears from the Menu as though
it was never there!

Suggestions?

Thanks, 

Rick 

> On Nov 15, 2018, at 11:32 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> I usually store my "menubar group" in a substack that will never be opened.
> Then I set "the defaultmenubar" of my stack to the name of that group and am 
> a happy camper,
> no more missing 22 pixels etc. on the Mac.
> ...
> Best
> 
> Klaus
> 
> --
> Klaus Major


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 custom 
menus on the fly! 

Bob S


> On Nov 15, 2018, at 08:32 , Klaus major-k via use-livecode 
>  wrote:
> 
> 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 (LC 9.0.1)
> 
> I ususally store my "menubar group" in a substack that will never be opened.
> Then I set "the defaultmenubar" of my stack to the name of that group and am 
> a happy camper,
> no more missing 22 pixels etc. on the Mac.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 natively 
has a large border which shifts everything down and partially obscures my 
status bar. 

Bob S


> On Nov 15, 2018, at 08:26 , Terence Heaford via use-livecode 
>  wrote:
> 
> 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


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 the top portion of the card 
above the top border of the window, out of view. The body of the window 
shortens to accomodate only that portion of the card that contains the 
actual stack content. The card is still technically the same height, but 
the part of the height that contains the menu group is hidden from view. 
LiveCode handles this window resizing transparently between platforms.


When the menu scrolls out of view, the actual content area will be, in this 
case, 800 pixels high. The other 22 pixels are above the top of the 
viewable area. You do not need to set the menu group invisible because it 
won't be in view. While you are working it's convenient to not set the 
group as the system menu. That way you can see where placement of the 
controls should go relative to the area that will disappear later. When 
layout is done, set it back to be used as the stack menubar so it will 
behave as you want.


If the menu group is not placed on every card, those cards will not scroll 
and the full height of the card is displayed. If you place the menu group 
on every card so the size remains consistent everywhere, the redraw problem 
at the bottom of the card shouldn't happen.


If you have already placed controls under the menubar area, you'll need to 
move them down.


Menubar behavior on Mac is a little quirky but it does allow you to write 
once and run on any OS, which is what LC is all about. As long as you don't 
make the menu group invisible, the stack will look as expected everywhere.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 15, 2018 9:05:09 AM 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 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 have "set as stack menubar" checked in Menu Builder


When displayed on screen the card displays with a height of 822 not 800 
even though the menubar is not showing in the window.



If you then position say a button for example within the lower 22 of the 
card remnants of the button can be seen on other cards when you go to 
another card.



How is this supposed to be dealt with in Livecode.


It all seems rather confusing to me.


It is usual on a Mac to have a 20 border to the edge of windows etc. As 
stated above if you do this then parts of the buttons

for some reason show on other cards (22 - 20).


Livecode should simply identify you are on a Mac and the 22 for the menubar 
should be dealt with in Livecode code rather than leaving it

to the scripter to sort out.


On a Mac if you set the stack height to 800 then the card should default to 
800.



Why can’t the menubar be stored by some other means?


End of part rant.








Thanks


Terry










___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 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 <
> use-livecode@lists.runrev.com> wrote:
> >
> > 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 stack position/coordinate
> > properties (I think) like top,left, right, bottom, height, width.
> >
> >
> >
> > On 11/15/2018 10:03 AM, 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 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 have "set as stack menubar" checked in Menu Builder
> >>
> >> When displayed on screen the card displays with a height of 822 not 800
> even though the menubar is not showing in the window.
> >>
> >> If you then position say a button for example within the lower 22 of
> the card remnants of the button can be seen on other cards when you go to
> another card.
> >>
> >> How is this supposed to be dealt with in Livecode.
> >>
> >> It all seems rather confusing to me.
> >>
> >> It is usual on a Mac to have a 20 border to the edge of windows etc. As
> stated above if you do this then parts of the buttons
> >> for some reason show on other cards (22 - 20).
> >>
> >> Livecode should simply identify you are on a Mac and the 22 for the
> menubar should be dealt with in Livecode code rather than leaving it
> >> to the scripter to sort out.
> >>
> >> On a Mac if you set the stack height to 800 then the card should
> default to 800.
> >>
> >> Why can’t the menubar be stored by some other means?
> >>
> >> End of part rant.
> >>
> >>
> >>
> >>
> >> Thanks
> >>
> >> Terry
> >>
> >>
> >>
> >>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 (LC 9.0.1)

I ususally store my "menubar group" in a substack that will never be opened.
Then I set "the defaultmenubar" of my stack to the name of that group and am a 
happy camper,
no more missing 22 pixels etc. on the Mac.

> Thanks
> 
> Terry
> 
>> On 15 Nov 2018, at 15:37, Paul Dupuis via use-livecode 
>>  wrote:
>> Look at the 'effective' keyword in the dictionary
>> The effective rect of a stack includes the borders and titlebar. The
>>> ...
>>> On a Mac if you set the stack height to 800 then the card should default to 
>>> 800.
>>> Why can’t the menubar be stored by some other means?

It can, see above...



Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 
>  wrote:
> 
> 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 stack position/coordinate
> properties (I think) like top,left, right, bottom, height, width.
> 
> 
> 
> On 11/15/2018 10:03 AM, 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 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 have "set as stack menubar" checked in Menu Builder
>> 
>> When displayed on screen the card displays with a height of 822 not 800 even 
>> though the menubar is not showing in the window.
>> 
>> If you then position say a button for example within the lower 22 of the 
>> card remnants of the button can be seen on other cards when you go to 
>> another card.
>> 
>> How is this supposed to be dealt with in Livecode.
>> 
>> It all seems rather confusing to me.
>> 
>> It is usual on a Mac to have a 20 border to the edge of windows etc. As 
>> stated above if you do this then parts of the buttons
>> for some reason show on other cards (22 - 20).
>> 
>> Livecode should simply identify you are on a Mac and the 22 for the menubar 
>> should be dealt with in Livecode code rather than leaving it
>> to the scripter to sort out.
>> 
>> On a Mac if you set the stack height to 800 then the card should default to 
>> 800.
>> 
>> Why can’t the menubar be stored by some other means?
>> 
>> End of part rant.
>> 
>> 
>> 
>> 
>> Thanks
>> 
>> Terry
>> 
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/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 stack position/coordinate
properties (I think) like top,left, right, bottom, height, width.



On 11/15/2018 10:03 AM, 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 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 have "set as stack menubar" checked in Menu Builder
>
> When displayed on screen the card displays with a height of 822 not 800 even 
> though the menubar is not showing in the window.
>
> If you then position say a button for example within the lower 22 of the card 
> remnants of the button can be seen on other cards when you go to another card.
>
> How is this supposed to be dealt with in Livecode.
>
> It all seems rather confusing to me.
>
> It is usual on a Mac to have a 20 border to the edge of windows etc. As 
> stated above if you do this then parts of the buttons
> for some reason show on other cards (22 - 20).
>
> Livecode should simply identify you are on a Mac and the 22 for the menubar 
> should be dealt with in Livecode code rather than leaving it
> to the scripter to sort out.
>
> On a Mac if you set the stack height to 800 then the card should default to 
> 800.
>
> Why can’t the menubar be stored by some other means?
>
> End of part rant.
>
>
>
>
> Thanks
>
> Terry
>
>
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 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 have "set as stack menubar" checked in Menu Builder
> 
> When displayed on screen the card displays with a height of 822 not 800 even 
> though the menubar is not showing in the window.
> 
> If you then position say a button for example within the lower 22 of the card 
> remnants of the button can be seen on other cards when you go to another card.
> 
> How is this supposed to be dealt with in Livecode.
> 
> It all seems rather confusing to me.
> 
> It is usual on a Mac to have a 20 border to the edge of windows etc. As 
> stated above if you do this then parts of the buttons
> for some reason show on other cards (22 - 20).
> 
> Livecode should simply identify you are on a Mac and the 22 for the menubar 
> should be dealt with in Livecode code rather than leaving it
> to the scripter to sort out.
> 
> On a Mac if you set the stack height to 800 then the card should default to 
> 800.
> 
> Why can’t the menubar be stored by some other means?
> 
> End of part rant.
> 
> 
> 
> 
> Thanks
> 
> Terry
> 
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 have "set as stack menubar" checked in Menu Builder

When displayed on screen the card displays with a height of 822 not 800 even 
though the menubar is not showing in the window.

If you then position say a button for example within the lower 22 of the card 
remnants of the button can be seen on other cards when you go to another card.

How is this supposed to be dealt with in Livecode.

It all seems rather confusing to me.

It is usual on a Mac to have a 20 border to the edge of windows etc. As stated 
above if you do this then parts of the buttons
for some reason show on other cards (22 - 20).

Livecode should simply identify you are on a Mac and the 22 for the menubar 
should be dealt with in Livecode code rather than leaving it
to the scripter to sort out.

On a Mac if you set the stack height to 800 then the card should default to 800.

Why can’t the menubar be stored by some other means?

End of part rant.




Thanks

Terry





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode