Herman Posted November 20, 2022 Posted November 20, 2022 Hello, is it at the moment possible to give from EV ( or Lua ) a sign to force the textbox to the next line ? ( I use Lua and concatenation to give the new line, so the multiline grows correctly but no new line ) Hallo, ist es im Moment möglich, von EV (oder Lua) ein Zeichen zu geben, um die Textbox in die nächste Zeile zu zwingen? (Ich benutze Lua und Verkettung, um die neue Zeile zu geben, so dass die mehrzeilige korrekt wächst, aber keine neue Zeile) Regards, Herman
Goetz Posted November 20, 2022 Posted November 20, 2022 vor 8 Minuten schrieb Herman: Hello, is it at the moment possible to give from EV ( or Lua ) a sign to force the textbox to the next line ? Yes, both The graphical EV offers a larger text box, suited for multiple line text. And Lua now supports \n for a new line.
Herman Posted November 20, 2022 Author Posted November 20, 2022 17 minutes ago, Goetz said: And Lua now supports \n for a new line. Thank you @Goetz , fine !
simonjackson1964 Posted November 21, 2022 Posted November 21, 2022 Oh! Would that work with the labels in the station departure boards?
simonjackson1964 Posted November 21, 2022 Posted November 21, 2022 Yes! It works, but I mucked up the loop
Goetz Posted November 21, 2022 Posted November 21, 2022 The loop only loops when text won't fit in the box. And loops aren't designed for multiline text.
simonjackson1964 Posted November 21, 2022 Posted November 21, 2022 No, not that loop, my code loop. Because I had it coded to put one line at a time on the "Via" list, it had between 4 and 13 lines to display and was looping on a two-second timer. Changing it to display two lines at a time meant adding a blank 14th line, but I forgot to increment the index a second time on the initial call! All working now. (Now to get the other platform to work!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now