[Drawkit] Changing margins does not shift drawing objects

Graham Cox graham.cox at bigpond.com
Tue Jul 8 17:45:23 PDT 2008


Hi Dick,

Layers can't be included in groups, as they are not subclasses of  
DKDrawableObject. In hindsight that might have been a good way to do  
things but it would be a big change to make now.

Your method outline could still work within each layer though, but the  
transform approach is probably cleaner. As I mentioned, it might be  
best to provide a method to do the work but leave the usage up to the  
app.

cheers, Graham


On 9 Jul 2008, at 7:32 am, Dick Applebaum wrote:

> I don't know if this will help (or even if it is possible) but, from  
> a logical standpoint couldn't you programatically:
>
> 1) group all the objects together including the document layer as  
> just another object
> 2) convert this to a shape
> 3) resize the shape as desired
> 4) convert back to a group object
> 5) ungroup
>
> Again, I don't know if DrawKit permits manipulation of the document  
> layer in this way... if not, you could create a background object  
> that serves as a document layer & manipulate is as above.



More information about the Drawkit mailing list