<div dir="ltr">Thanks. I ended up subclassing LayoutMorph, invoking it like this:<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace">m := LabelTextAlignmentMorph label: (LabelMorph contents: '0.0') align: #right.</font> </blockquote><div><br></div><div><img src="cid:ii_lf8edu3d0" alt="Screenshot 2023-03-14 at 11.06.49 AM.png" width="296" height="308"><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 14, 2023 at 10:22 AM <<a href="mailto:ken.dickey@whidbey.com">ken.dickey@whidbey.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2023-03-14 06:06, Alexandre Rousseau via Cuis-dev wrote:<br>
<br>
> Hi all.<br>
> <br>
> Given this code ...<br>
> <br>
>> "self is a LayoutMorph newColumn instance"<br>
> <br>
>> m := LabelMorph new :: contents: '0.0'.<br>
> <br>
>> m borderWidth: 3; borderColor: Color black.<br>
>> m layoutSpec :: proportionalWidth: 1.0.<br>
>> self addMorph: m.<br>
> <br>
> I would like the text inside m to be right-aligned.<br>
> <br>
> Am I correct in assuming that there is no other way to achieve this <br>
> (text-alignment right) than to embed another LayoutMorph newRow <br>
> instance inside of self, and then embed m (the LabelMorph instance) <br>
> inside of that?<br>
<br>
Probably most simple way is to subclass LabelMorph to do what you want.<br>
<br>
Feature require: 'UI-Base-Morphs'<br>
<br>
Then look at class #SqueezeLabelMorph<br>
<br>
THe code should give enought hints on how to do what you want.<br>
<br>
More fun to do it yourself. :)<br>
<br>
HTH,<br>
-KenD<br>
</blockquote></div>