Jump to content

[SOLVED] centering text in labels


photo

Recommended Posts

<... some window>

    <label name="focus_window_label" export="1" align="expand" width="150" height="15">
        <text rich="1"><center>focus me</center></text>
    </label>        

</window>
Does not center the "focus me".
 

If i add wrap="1"  to the text properties, it starts to work as expected..

Link to comment
  • 3 weeks later...

I have given option does not work, there are other examples

<label align="expand">
      <text rich="1"><p align="right">Text1 to the right</p></text> <!-- does not work -->
</label>
<label align="expand">
      <text rich="1"><center>Text2 center</center></text> <!-- does not work -->
</label>
<label align="expand">
      <text rich="1" wrap="1"><p align="right">Text3 to the right</p></text> <!-- OK -->
</label>
<label align="expand">
      <text rich="1" wrap="1"><center>Text4 center</center></text> <!-- OK -->
</label>
<label width="320">
      <text rich="1" wrap="1" align="right">Text5 to the right</text> <!-- does not work -->
</label>
Link to comment
×
×
  • Create New...