Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 URGENT!!!!>>>Can someone help me with turing graphic pleaaseee
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
bao_luk




PostPosted: Sun Apr 27, 2008 3:08 pm   Post subject: URGENT!!!!>>>Can someone help me with turing graphic pleaaseee

Can someone help me with something??

I'm currently doing an assignment regarding this.
The program should show a graphic first,
and then continue asking the user questions, what i did is this:

put "This is how the original cookies looks like."
drawoval (200, 200, 170, 170, 17)
put "Which type of cookie do your want?"

But when I run the program,
the graphic is shown, but then the words just run on top of it
just like the graphic is being the background.

So, can anyone help me with it,
so that the words and graphic don't overlap each other???

Thankss a lot,,and please reply ASAP.
Sponsor
Sponsor
Sponsor
sponsor
cavetroll




PostPosted: Sun Apr 27, 2008 3:11 pm   Post subject: RE:URGENT!!!!>>>Can someone help me with turing graphic pleaaseee

I think what you want is the Font.Draw command. This draws text as a graphic at a pixel location.
bao_luk




PostPosted: Sun Apr 27, 2008 4:27 pm   Post subject: Re: RE:URGENT!!!!>>>Can someone help me with turing graphic pleaaseee

cavetroll @ Sun Apr 27, 2008 3:11 pm wrote:
I think what you want is the Font.Draw command. This draws text as a graphic at a pixel location.


but how??
Sean




PostPosted: Sun Apr 27, 2008 5:11 pm   Post subject: Re: URGENT!!!!>>>Can someone help me with turing graphic pleaaseee

Or you can use the locate feature.

Turing:

put "Your Text"
locate (Column,Row)


I think it is that way, might be vice-versa. That will move your text.
cavetroll




PostPosted: Sun Apr 27, 2008 5:54 pm   Post subject: Re: URGENT!!!!>>>Can someone help me with turing graphic pleaaseee

Turing:

%You have to declare a font variable
var font : int := Font.New("Arial:12")

Font.Draw("Text to output",100,100,font,12)


This will output the given text on the screen.
bao_luk




PostPosted: Sun Apr 27, 2008 8:17 pm   Post subject: Re: URGENT!!!!>>>Can someone help me with turing graphic pleaaseee

Sean @ Sun Apr 27, 2008 5:11 pm wrote:
Or you can use the locate feature.

Turing:

put "Your Text"
locate (Column,Row)


I think it is that way, might be vice-versa. That will move your text.



HOW COME THE COLUMN AND ROW CAN'T BE BIGGER THEN 25?
ANY SOLUTION TO THAT??
SORRY FOR ASKING TOO MUCH Smile
CodeMonkey2000




PostPosted: Sun Apr 27, 2008 8:32 pm   Post subject: RE:URGENT!!!!>>>Can someone help me with turing graphic pleaaseee

Because it will go off screen. And please don't use all caps.
cavetroll




PostPosted: Sun Apr 27, 2008 8:36 pm   Post subject: Re: URGENT!!!!>>>Can someone help me with turing graphic pleaaseee

The reason that the column and row can't be bigger than 25 is because the locate command doesn't specify pixel locations. It is using text viable coordinates. This means that it is using text rows and text columns.
Sponsor
Sponsor
Sponsor
sponsor
CodeMonkey2000




PostPosted: Sun Apr 27, 2008 8:42 pm   Post subject: RE:URGENT!!!!>>>Can someone help me with turing graphic pleaaseee

Try using locatexy I think that uses pixel coordinates.
bao_luk




PostPosted: Sun Apr 27, 2008 9:00 pm   Post subject: RE:URGENT!!!!>>>Can someone help me with turing graphic pleaaseee

OKAYY i got i now
thanks a lot all of u =)
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 10 Posts ]
Jump to:   


Style:  
Search: