Computer Science Canada

LocateXY Help

Author:  jolly50 [ Sat Nov 03, 2007 9:08 pm ]
Post subject:  LocateXY Help

Hello there,

I'm trying to make a sign in turing using locatexy... my problem is that when i run my code I get the writing, but its leaving a white trail through the box.

code:


drawbox (150,300,435,100,9)
locatexy (200,200)
    put "Jolly's Fabulous Burgers"



Am i missing something in my code?

Author:  CodeMonkey2000 [ Sat Nov 03, 2007 9:25 pm ]
Post subject:  RE:LocateXY Help

Put a .. at the end of your put statement.

Author:  HeavenAgain [ Sun Nov 04, 2007 12:05 am ]
Post subject:  RE:LocateXY Help

Font.Draw << look that up
when working with graphics + text, you might not want to use put

Author:  Clayton [ Sun Nov 04, 2007 8:58 am ]
Post subject:  RE:LocateXY Help

The reason you're getting that white line, is because put clears a line (because it uses text mode), and then outputs the text to that line. If you're really interested in doing this, go with HeavenAgain's advice, and look up Font.Draw().

Author:  jolly50 [ Sun Nov 04, 2007 9:50 am ]
Post subject:  RE:LocateXY Help

Thanks for all your help

Author:  CodeMonkey2000 [ Sun Nov 04, 2007 1:02 pm ]
Post subject:  Re: LocateXY Help

I told you just do this:
Turing:

drawbox (150, 300, 435, 100, 9)
locatexy (200, 200)
put "Jolly's Fabulous Burgers" ..


: