2/5/2014 3:05 PM | |
Joined: 7/7/2010 Last visit: 10/4/2024 Posts: 15264 Rating: (2422)
|
Ok, I may not understand exactly what you are after, but the way these basic panels work is they do not wrap text in text fields. Let me repeat - they do not wrap text. They cannot wrap text. I have an application begging for wrapped text but it will not wrap to the next line. If you have long text and need to wrap it, you need to do what I had to do. Create an array of strings that fit your field space at the font attributes/size you need. Run a routine that updates those arrays of strings each time the main string you want to display changes. For example, I want something the user can configure to take up 3 lines of text like this: [line 1 text] [line 2 text] [line 3 text] I tried settings up the user entry to be a single line with $R for end-of-line markings, thinking it should work, but the basic panels do not allow this to work. Instead, I created a single user entry field, had them enter $R where they wanted line breaks, and if the user is on that screen and the text changes, I run a routine that grabs the 3 strings from their entry, updates an array of strings. In other words, I turned this: [line 1 text$Rline2 text$Rline3 text] as a single string input field to: array[0] = "line 1 text" array[1] = "line 2 text" array[2] = "line 3 text" I have 16 entry fields and 48 text fields to generate in my specific application. Perhaps this is a useful approach for your application to get it working. I had to contact Support Requestto find out the work-around was required to display text the way I need it. Yes, I could have simply had 48 single text entry fields, but that would not fit on the screen with normal human sized finger touches... |
science guy |
|
12/14/2018 3:54 PM | |
Joined: 7/29/2017 Last visit: 12/4/2023 Posts: 20 Rating: (0) |
Hello Steve; It might be helpful: https://support.industry.siemens.com/tf/ww/en/posts/input-text-in-several-lines/151548/ |
Last edited by: MOHSENM at: 12/14/2018 3:55:20 PM |
|
Follow us on