set the resize behavior programmatically

D

dani

Hi all,

how can I set the resize behavior of a shape?
Is there a cell in the shapesheet? And if yes, which one (I couldn't
find it...)?

thanks

Daniel
 
D

dani

I've found the answer.

there's a cell named ResizeMode.

When I set the Cell before I add a shape to a group, the behavior is
correct after it is added to the group.

But when I open the shapesheet once the subshape is inside of the group,
I can change the cell and there is no effect. Then it only works with
the Format -> Behavior... - Dialog.

Is there an explanation for this??? Or is it just like this?

Daniel
 
M

Markus Breugst

Hi Daniel,

I guess the explanation is the following:

If you add a shape (with ResizeMode set to 0 or 2) to a group, then the
Width and Height cells of the shape are automatically modified: After
grouping the shape, the values of these cells are formulas that are
dependent on the Width and Height of the group shape (e. g. Width
=Sheet.6!Width*0,5 where Sheet.6 is the group shape). These formulas stay
even if you change the ResizeMode value to 1 after grouping the shapes.
If the ResizeMode is set to 1 before grouping the shapes, then the Width and
Height cells are not modified, i. e. they remain independent of the group
shape (e. g. Width= 33 mm).

Best regards,
Markus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top