Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...

Browsing this Thread:   1 Anonymous Users





MUI/Zune Alignment with MUIA_Weight=0

Joined:
1/20 18:36
From SF Bay Area, California
Group:
Member
Posts: 45
Offline
I'm a little perplexed by some (basic) MUI layout issues.

I have a group with a row of buttons, each with an image. I use MUIA_HorizWeight to set the width of the buttons to be only as wide as necessary to display the image. So far so good. The button group is a child of a VGroup. There are many VGroups as children of a Scrollgroup. Each VGroup displays correctly with the buttons aligned on the left.

Now, when I add an LLabel text to the VGroup something interesting happens. The label and button group in each VGroup become centered relative to each other.

I imagine I'd be able to fix this by left-aligning the VGroup children but this doesn't seem to be supported in the version of Zune I am using.

Can anyone hit me with a clue stick?

Edit: I've attached a couple of screen shots that show the centering that occurs when MUIA_HorizWeight 0 is set on all the buttons. The second image shows what happens when I set a MUIA_HorizWeight to > 0 for the first button.





Attach file:



png  buttons_center.png (5.97 KB)
10054_5b50a9fc17a11.png 276X134 px

png  buttos_left.png (7.19 KB)
10054_5b50aa0b00948.png 722X130 px

Posted on: 7/17 8:18

Edited by remotenemesis on 2018/7/19 8:11:21
Edited by remotenemesis on 2018/7/19 8:12:52
Transfer the post to other applications Transfer


Re: MUI/Zune Alignment with MUIA_Weight=0

Joined:
1/20 18:36
From SF Bay Area, California
Group:
Member
Posts: 45
Offline
After pondering this for days and trying a few different things, I was finally inspired to add a RectangleObject after the last button with a MUIA_HorizWeight of > 0. Posting this here in case it helps anyone in the future.

Posted on: 7/19 22:27
Transfer the post to other applications Transfer


Re: MUI/Zune Alignment with MUIA_Weight=0

Joined:
2009/4/16 23:03
From Liancourt Saint Pierre - France
Group:
Member
Posts: 1144
Offline
Hi,

You've already found what I was willing to post, you must add some rectangle objects here and there that will expand themselves to fit the window size.

Posted on: 7/20 3:26
_________________
Yannick
http://www.dusabledanslherbe.eu/AROSPage
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4439
2 magorium
magorium
4095
3 nikolaos
nikolaos
4072
4 phoenixkonsole
phoenixkonsole
3941
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2807
7 mazze
mazze
2222
8 clusteruk
clusteruk
2112
9 damocles
damocles
1789
10 BSzili
BSzili
1516
© 2004-2018 AROS Exec