label.text length
Posted: Wed Sep 30, 2020 3:44 pm
I noticed that the length of the label is set when the form is built in relation to the length of the text on the label itself.
It set a new text in the hws with the set instruction the length is not updated, at lest the form layout remain the same.
Then in case I set like that in reality it set the length to zero and the label is not visible
changing it later with the new text is still invisible because the length remains set to zero.
Trick is to set a fake label in the the xml file with an appropriate length like
It set a new text in the hws with the set instruction the length is not updated, at lest the form layout remain the same.
Then in case I set like that
Code: Select all
<label id="kjkj" Align="Center" > </label> changing it later with
Code: Select all
moai.Set("kjkj","text","label comment")Trick is to set a fake label in the the xml file with an appropriate length like
Code: Select all
<label id="kjkj" Align="Center" >aaaaaaaaaaaaaa</label>