Community

SCI Programming => SCI Syntax Help => Topic started by: gumby on October 17, 2010, 10:28:25 PM

Title: Display function & text resources
Post by: gumby on October 17, 2010, 10:28:25 PM
I'm having a strange problem with the display function.  It seems that when I use it with text resources numbered over 99, things go wacko (font color wrong, position on screen wrong).

Is this some sort of limitation that I've hit?  Here's the code:
Code: [Select]
 Display( 000 100      // text resource 0, number 100
                 dsCOORD 0 100
                 dsCOLOUR clYELLOW
                 dsBACKGROUND -1
                 dsFONT 4
                 dsALIGN alCENTER
                 dsWIDTH 320
               )
Title: Re: Display function & text resources
Post by: gumby on October 18, 2010, 08:48:23 AM
Found a way around it.  Declared a string variable & stuffed the text into it before calling the Display function.
Code: [Select]
GetFarText(000 100 @tempStr)
Display(@tempStr
           dsCOORD 0 100
           dsCOLOUR clYELLOW
           dsBACKGROUND -1
           dsFONT 4
           dsALIGN alCENTER
           dsWIDTH 320
)
Title: Re: Display function & text resources
Post by: Cloudee1 on October 18, 2010, 11:17:00 AM
Hmm, never had a texy resource with over a hundred lines so I dunno.