Make a Group Bereft of All Layout Properties

Ralph DiMola rdimola at evergreeninfo.net
Fri Feb 5 09:48:56 EST 2016


Team,

This brings up an issue I just discovered yesterday. I resize several
controls in a group. The group auto resizes(lock lock true) to the max x/y
extents of all objects. It seems that there is a 4 pixel margin
right/top/right/bottom. The group is 8 Pixels taller and wider that it needs
to be. Is this caused a property that I missed?

Thanks!

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of Scott Rossi
Sent: Friday, February 05, 2016 2:14 AM
To: LiveCode Mail List
Subject: Re: Make a Group Bereft of All Layout Properties

The group can always clip the objects within it. If you give the group
margins and do the math to scale the object/s within to stay within the
inner rect, you can maintain the objects' graphic effects.  If you don't
want to do the math and move the contained objects independently of the
group, you could try enabling clipsToRect property of the group.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 2/4/16, 10:57 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami"
<use-livecode-bounces at lists.runrev.com on behalf of brahma at hindu.org> wrote:

>Am I the only one who frequently wishes that groups could be made as a 
>kind of class or abstraction? By this I mean, I want to establish a 
>group that would, by default,
>
> take the rect of the card (dynamically if it were resized) have no 
>border or any graphical properties of any kind as an ³object² i.e. the 
>group is an abstactions: a collection of objects, while itself not 
>having any UI props at all.
>
>
>
>use case is: You want to place objects into a group, but the objects 
>are not bounded, graphical by any rect. You will never be placing this 
>particular group to a location as such, only it¹s members.
>
>Currently if you create, for example, a field, set graphic effects etc.
>and want to make it a group so that it can be placed on multiple cards, 
>you have to struggle to ward off the group border, the group rect acts 
>as a mask that cuts the outglow effect etc.  any attempts to change the 
>size of the group using handles then ³messes² with the object inside 
>itŠ
>
>Is there a way to have a group be just a class of objects? with no 
>properties that will interfere at all with the objects it contains?
>
>BR
>_______________________________________________
>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