1.1k 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 - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...