Community
SCI Programming => SCI Syntax Help => Topic started 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:
Display( 000 100 // text resource 0, number 100
dsCOORD 0 100
dsCOLOUR clYELLOW
dsBACKGROUND -1
dsFONT 4
dsALIGN alCENTER
dsWIDTH 320
)
-
Found a way around it. Declared a string variable & stuffed the text into it before calling the Display function.
GetFarText(000 100 @tempStr)
Display(@tempStr
dsCOORD 0 100
dsCOLOUR clYELLOW
dsBACKGROUND -1
dsFONT 4
dsALIGN alCENTER
dsWIDTH 320
)
-
Hmm, never had a texy resource with over a hundred lines so I dunno.