When there is a long top banner subheading text in the setup screen, it overlaps the graphic on the right. Is there a way to add a line break to force the text to break before the graphic?
Professional Software Development Tools
When there is a long top banner subheading text in the setup screen, it overlaps the graphic on the right. Is there a way to add a line break to force the text to break before the graphic?
Yes, there is a way to have manual line breaks in the top header text. You have to set the text with Lua script in the On Preload event of the screen, like this:
This code will result in an header like this:Code:Screen.SetLocalizedString("IDS_HEADER_TEXT", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed\ndo eiusmod tempor incididunt ut labore et dolore magna");
SNAP-2011-10-20-02.png
As you can see, the line break after "sed" is correctly preserved in the header. If you want to manually set the subheader text of the screen, use the "IDS_SUBHEADER_TEXT" identifier instead:
SNAP-2011-10-20-03.pngCode:Screen.SetLocalizedString("IDS_SUBHEADER_TEXT", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed\ndo eiusmod tempor incididunt ut labore et dolore magna");
Ulrich
Last edited by Ulrich; 10-20-2011 at 05:50 PM.
Ulrich,
Very good. Perfect for what I want.
Once more, thank you so much.