A VB or Visual Logic script that splits on \n or \r\n.
I don't recall being able to use Visual Logic to find or split special characters though.
I would recommend a non-displayed text field to be published for input. The text on the ticker is not published.
In the "on prepare" event write a script that takes the published field, splits it on newline, and only uses the first two lines to populate the text on the ticker.
------------------------------
Azathoth
Son of Cthulhu
------------------------------
Original Message:
Sent: 04-11-2024 16:21
From: Robert Perry
Subject: Limit lines of text in Xpression
I am working on updating our Xpression graphics so they are not cut off by our news ticker at the bottom of the screen. I have word wrap enabled on our text elements for horizontal text constraints. However, our producers are able to press "Enter" on their keyboards and create as many lines of text as they want. Is there a way to set limits on the number of lines of text without using a character limit?
Any help with this would be greatly appreciated. Thank you!
------------------------------
Robert Perry
Senior Newscast Director
KHQ-TV
------------------------------