Stack Height/Menubar

Terence Heaford theaford at btinternet.com
Thu Nov 15 11:26:19 EST 2018


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 at 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 at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list