Page 1 of 1

How to get rid of horizontal spacing between objects?

Posted: Wed Jun 04, 2014 7:23 pm
by marko
Okay I have another thing on my mind too, regarding buttons (and objects)..

In my XML file I have like:

<hgroup>
<button id="but_1" notify="pressed" shorthelp="Add new entry" weight="0">Button 1</button>
<button id="but_2" notify="pressed" shorthelp="Add new entry" weight="0">Button 2</button>
<button id="but_3" notify="pressed" shorthelp="Add new entry" weight="0">Button 3</button>
<hgroup>

How do I get rid of the horizontal spacing between the buttons (including their frame)? I know I can increase the spacing with HSpace, but setting HSpace to zero isn't enough.

I want the buttons closer, just next to each other, like the buttons in NotePad in OS4.1, may this be possible? :S

Re: How to get rid of horizontal spacing between objects?

Posted: Wed Jun 04, 2014 10:33 pm
by airsoftsoftwair
That should be possible using Group.HorizSpacing, e.g.

Code: Select all

<hgroup horizspacing="0">
<button id="but_1" notify="pressed" shorthelp="Add new entry" weight="0">Button 1</button>
<button id="but_2" notify="pressed" shorthelp="Add new entry" weight="0">Button 2</button>
<button id="but_3" notify="pressed" shorthelp="Add new entry" weight="0">Button 3</button>
<hgroup>

Re: How to get rid of horizontal spacing between objects?

Posted: Wed Jun 04, 2014 10:52 pm
by marko
Ah excellent, that is possible!

Thanks, looks perfect now :)