Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Location
    Sao Paulo, Brazil
    Posts
    150

    Banner subheading text

    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?

  2. #2
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    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:

    Code:
    Screen.SetLocalizedString("IDS_HEADER_TEXT", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, 
    sed\ndo eiusmod tempor incididunt ut labore et dolore magna");
    This code will result in an header like this:

    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:

    Code:
    Screen.SetLocalizedString("IDS_SUBHEADER_TEXT", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, 
    sed\ndo eiusmod tempor incididunt ut labore et dolore magna");
    SNAP-2011-10-20-03.png

    Ulrich
    Last edited by Ulrich; 10-20-2011 at 05:50 PM.

  3. #3
    Join Date
    Oct 2003
    Location
    Sao Paulo, Brazil
    Posts
    150
    Ulrich,
    Very good. Perfect for what I want.
    Once more, thank you so much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts