How to get rid of horizontal spacing between objects?

Discuss GUI programming with the MUI Royale plugin here
Post Reply
marko
Posts: 56
Joined: Wed Dec 15, 2010 5:19 pm
Contact:

How to get rid of horizontal spacing between objects?

Post 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
AmigaOS 4.1 on Sam440ep-flex@800MHz
http://www.m4rko.com/amiga
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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>
marko
Posts: 56
Joined: Wed Dec 15, 2010 5:19 pm
Contact:

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

Post by marko »

Ah excellent, that is possible!

Thanks, looks perfect now :)
AmigaOS 4.1 on Sam440ep-flex@800MHz
http://www.m4rko.com/amiga
Post Reply