Hi,

At the bottom of my application there is a status line like this:

<panel>
  <tableLayout>
    <row height="10"/>
    <row height="2">
      <cell columnSpan="2" hAlign="Full" vAlign="Full">
        <line color="#0099cc"/>
      </cell>
    </row>
    <row height="25">
      <cell width="80%" hAlign="Left" vAlign="Bottom">
        <textLabel name="STATUS_MESSAGE" />
      </cell>
      <cell width="20%" hAlign="Right" vAlign="Bottom">
        <textLabel name="OPERATOR_NAME"/>
      </cell>
    </row>
  </tableLayout>
</panel>

The status message is entered with the API: api_component.setlabel('operatorName.STATUS_MESSAGE',p_message);

It works perfectly. However, the textlabel scrolls after approx 20 characters. So long messages are split into multiple lines.

It appears that it is not possible to set a width for a textlabel. I have tried to solve the problem with the width of the cell, but even when i set it to 1000, the message is always broken up.

How can i solve this problem?

Kind regards, Jan Willem

asked 12 Sep '15, 09:12

Jan%20Willem%20Vermeer's gravatar image

Jan Willem V...
1431436
accept rate: 0%


Hi Jan,

you can use the cell attribute ChildWidth to set the width of the cell component e.g. the texfield. Otherwise you can set the width of the cell and set hAlign="Full".

Best Regards,

Michael

link

answered 15 Sep '15, 05:01

Michael's gravatar image

Michael
2095
accept rate: 0%

Thanks Michael, this works perfect.

<panel>
  <tableLayout>
    <row height="10"/>
    <row height="2">
      <cell columnSpan="2" hAlign="Full" vAlign="Full">
        <line color="#0099cc"/>
      </cell>
    </row>
    <row height="25">
      <cell width="75%" hAlign="Full" vAlign="Bottom" >
        <textLabel name="STATUS_MESSAGE"/>
      </cell>
      <cell width="25%" hAlign="Full" vAlign="Bottom" >
        <textLabel name="OPERATOR_NAME" text-align="Right" />
      </cell>
    </row>
  </tableLayout>
</panel>

Kind regards, Jan Willem

link

answered 15 Sep '15, 12:07

Jan%20Willem%20Vermeer's gravatar image

Jan Willem V...
1431436
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×4
×3

Asked: 12 Sep '15, 09:12

Seen: 827 times

Last updated: 15 Sep '15, 12:07


© Copyright Gerger 2017