Author |
Message |
bao_luk
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
cavetroll
![](http://compsci.ca/v3/uploads/user_avatars/9161761347fd5efa4f4b5.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
bao_luk
|
Posted: 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?? |
|
|
|
|
![](images/spacer.gif) |
Sean
![](http://compsci.ca/v3/uploads/user_avatars/47413941748406f441f83e.png)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
cavetroll
![](http://compsci.ca/v3/uploads/user_avatars/9161761347fd5efa4f4b5.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
bao_luk
|
Posted: 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 Smile](http://compsci.ca/v3/images/smiles/icon_smile.gif) |
|
|
|
|
![](images/spacer.gif) |
CodeMonkey2000
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
cavetroll
![](http://compsci.ca/v3/uploads/user_avatars/9161761347fd5efa4f4b5.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
CodeMonkey2000
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
bao_luk
|
Posted: 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 =) |
|
|
|
|
![](images/spacer.gif) |
|