Werner,
I think I see the issue now:
first: I'm not sure I'd leverage the Canvas boudnign box to figure out
where to put stuff, but rather, keep track of the coordinates of you
objects yourself, so you can place things relative to other objects
regardless of what else is on the canvas.
however, what you did should work.
The issue is that you've created a group object, then added it to the
Canvas, then added sub-objects to it. Apparently, the boudning box of
the canvas doesn't get properly updated when you do things in that
order.
I moved the line:
self.Canvas.AddObject(rackUnit)
to after adding all the sub-objects (line 204 in my version), and I
think it works like you expect.
But it would be better if the canvas boundign box was properly updated
when objects were added to a group. I'll try to take a look at that
now.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[email protected]
_______________________________________________
FloatCanvas mailing list
[email protected]
http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas