Page 1 of 1

The rectangle of a group

Posted: Wed Nov 20, 2013 4:47 pm
by Mag
Hi all,

I'm dealing with positioning of a group with a toolbar which contains buttons and a graphic. It seems to me that the rectangle of the gourp has some pixels more that the ofe of the included object, for exaple to align the bar to the bottom of the card, I have to add 4 pixels:

Code: Select all

set the bottom of group "Toolbar" to the bottom of this card+4
Is there something that I don't know or make wrong?

Re: The rectangle of a group

Posted: Wed Nov 20, 2013 5:10 pm
by FourthWorld
Groups have a margin property, which is set to 4 by default. This margin is useful to maintain consistency with the HIGs when providing a frame around grouped controls, but when using groups for any other purpose you can safely set the margin to 0.

Re: The rectangle of a group

Posted: Wed Nov 20, 2013 5:58 pm
by Mag
FourthWorld wrote:Groups have a margin property, which is set to 4 by default. This margin is useful to maintain consistency with the HIGs when providing a frame around grouped controls, but when using groups for any other purpose you can safely set the margin to 0.
Thank you so much Richard. Is the margin property a value I have to set via cose or there is a value in the Inspector (that I didn't find).

Re: The rectangle of a group

Posted: Wed Nov 20, 2013 6:09 pm
by Klaus
Hi Mag,

check the "Text Formatting" options of the group in the inspector!
There you will find at the bottom :D


Best

Klaus

Re: The rectangle of a group

Posted: Wed Nov 20, 2013 6:21 pm
by Mag
Thanks a lot guys!