Having problems at the moment with groups and geometry management. I have
been using the rectangle of the group as a visual border, which is nice as
you can see the group, position it etc and saves having to add a dummy
button as a frame for the group...

I then started to use the "rect" of the group as a natural reference point
with which to resize and position the contents of the group. Fine. Two
problems:

    1) A groups rectangle is automatically calculated from the objects
(visible I think) within the group.

Now in the complex tabbed resizable layout that I am working on, I hide
objects that overlap, and move stuff around using geometry management - and
I want the group to stay still. But it keeps getting resized and moves
around due to this automatic setting of the group rectangle.

I have everything ending up pretty well where I want, but the whole group
jumps or appears to have a large border. I think this is because an object
has temporarily been moved outside of the group, and this combined with
hiding/showing is causing the bug... I'm just wandering what a good strategy
here is/ What is the relationship between invisible objects, and a groups
rect, and in general what is the behaviour/effect of invisible objects.

Ideally I'd like to turn off this automatic resizing of the group and have
objects just disappear "off frame" when there location is set to outside of
the group, then I wouldn't have to be so careful about tracking all the
objects locations (invisible or not). This is how it works when you manually
resize a groups borders. The same problem occurs when you change a players
filename (the player gets resized if the controller is visible).

    2) An automatic margin of several pixels is drawn around the objects
that the group contains. This default margin seems to differ when a group
contains other groups - not sure about this.



Any advice on a good strategy here? I am thinking of abandoning my reliance
of a groups rectangle as a marker of where a group is, and setting some
custom property which all the script refer to and making sure the last step
is to reset the groups rect to that position? But maybe there is a simple
way of stopping the group resizing/ Perhaps this doesn't not happen if the
screen is locked or all the objects are hidden/visible? Or I do things in a
certain order?

As always I'll report back with any progress on this...


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to