Defaults for groups

lc at pbh.on-rev.com lc at pbh.on-rev.com
Sat May 14 00:32:42 EDT 2016


I thought you should be able to set the templateGroup properties, maybe using a plugin that opens on LC startup, so I tried a test stack and found that the templateGroup props don’t apply to a new group (at least not the margins and borderWidth), the dictionary suggests this should work, so I tried it in LC 7 - no luck, then LC 5 - still no luck! so I guess this is a long standing bug that doesn’t affect anyone…

I’d be happy to bug report it with my test stack, but I don’t want to tread on any toes!

Paul


> On May 13, 2016, at 8:12 PM, Sannyasin Brahmanathaswami <brahma at hindu.org> wrote:
> 
> Am I the only one wishing that when we create a group the defaults should be no border, no border width assign and margins 0?
> 
> This keeps biting me as the dimensions of group and what appears on screen don't match and movement of objects in the group displace the group in ways that are off by a few pixels.  One gets a 2 pixel blank area inside the group. If you set the bottom of the gropu to the bottom o the card… you still get a 2 pixel transparent area underneath the group… Setting a background object like a graphic to the exact same dimensions and rect of the group… they don't match.
> 
> But then if you turn off the border, explicitly set line width to 0 and margins to 0, the dimensions and what you see and the relation between objects in the group in terms of their coordinates… all work as expected.
> 
> Proposed:
> 
> the default for a new group be "clean and unadorned"… without any GUI attributes other than the objects that comprise the group.
> 
> 
> 
> _______________________________________________
> 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