46 views
in GUI Development by
HI

I am working on the Text where the text.label and then text.color need to be changed.

mycode {

 Text.String = "Animation";

Text.Color =  #000000FF;

 

When i debug and trace out it show the correct value but on the screen text become invisble?

}

1 Answer

0 votes
by
Hi Pedia,

when you trace through your code you will see that the content of the properties changes immediately. However, the corresponding Text view will not change immediately when stepping through the code, because the Text view has to be redrawn.

Changing properties of views will mark the views as invalid - they will be redrawn within the next update cycle of the main loop.

Does this answer your question? If there is some other behavior, please provide a simple example.

Best regards,

Manfred.
by
If i understood correctly in one cycle only one change(properties such as string, color, font) of the text view will be reflected.
by
No, you can set many properties within your method and the update will happen afterwards.
by
But if one properties is updated immediately then second properties should also set by default .
by
What do you mean? Sorry I don't get the point....
by
If the text can update the string value immediately , then the same text color should also update immediately . No need to wait for next cylce?

Does it clarify my point?
by
Can you please provide a simple example? Then we are sure that we are talking about the same.
by
ok sure give me some time

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...