the '\n' sign forces the line break. Your approach should work. Why it is not working is difficult to deduce based on the provided information. For test purpose, have you tried to assign the string "Welcome to \njqpy" directly to String property of the Text view?
Do you have any idea why the text gets clipped and how to solve it?
Maybe providing a screenshot could help us to understand what exact effect do you observe?
Certainly! The left image is a screen shot from the prototyper where I've changed the default value of the device property to the message. The right image is how it appears on the device, but with different colors (sorry about the rotation). As you can see, the lower parts of the letters get clipped.
it is still unclear for me what exact problem did you observe. Could you please provide us more details concerning the issue and how to reproduce it?
In your last comment you mention 'resetting the bounds of the text-box'. What was the original value of Bounds?
Using workarounds without understanding the problem is not really recommended. Since we have never seen a similar behavior, we suppose there is some peculiarity in your project. But which?
From your description I have understood, that the bounds of the Text view changed. Have you eventually configured the Text view with its property AutoSize = true? This is the unique possibility for the view to modify its own size by itself.
Also possible, is the Text view configured with its property Layout to resize itself automatically when the size of the superior component changes? Concrete does Layout contain the options ResizeHorz and/or ResizeVert activated?
If none of the above cases is true, can you review the implementation of your component searching for code which eventually modifies the Bounds property of the Text view?
Concerning the device property, at first glance I don't see any dependency causing similar behavior. Anyway, please review the native code (C code) where the string is prepared and passed to the GUI application. Note the section Be careful when exchanging strings. Especially, the string passed to the GUI application has to be created by using one of the EwNewStringXXX() functions described in the mentioned section.
I hope it helps us to understand the cause of the issue.
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!