Jump to content

[SOLVED] centering text in labels


photo

Recommended Posts

Posted

<... 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..

  • 3 weeks later...
Posted

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>
Posted

vita_de

 

This issue will be fixed in the next version of SDK. Thanks!

btw, the last example should not work, because <text> tag is containing no align attribute, sorry for misleading you in this case. 

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

I have, thru workaround, made it work and forgot about. I will return to it in next release to do it properly. Thank you!

×
×
  • Create New...