Computer Science Canada

Draw.ThickLine help file is a little confusing

Author:  goroyoshi [ Sun Apr 03, 2011 5:54 pm ]
Post subject:  Draw.ThickLine help file is a little confusing

Does View.set or setscreen have to be set to "graphics" because i have it now at "offscreenonly,nobuttonbar" and it works

Author:  CastlevaniaBird [ Sun Apr 03, 2011 5:57 pm ]
Post subject:  Re: Draw.ThickLine help file is a little confusing

Turing:


setscreen ("graphics:512,256")


makes the window 512x256, but I think View.Update just goes in on it's own.

Otherwise, I'm not sure what you're asking - Sorry if I couldn't help.

Author:  goroyoshi [ Sun Apr 03, 2011 5:59 pm ]
Post subject:  RE:Draw.ThickLine help file is a little confusing

not what i was asking at all thanks for trying, i was asking :
if i use Draw.ThickLine, does it have to be set to graphics

Author:  Raknarg [ Sun Apr 03, 2011 6:03 pm ]
Post subject:  RE:Draw.ThickLine help file is a little confusing

No, I'm pretty sure the newer version of Turing sets the mode to "graphics" if you call a draw function... what was the code you had before?

Author:  CastlevaniaBird [ Sun Apr 03, 2011 6:03 pm ]
Post subject:  RE:Draw.ThickLine help file is a little confusing

Ohhh.

I don't think so - Draw.ThickLine is just like Draw.Box or Draw.Line...

http://compsci.ca/holtsoft/doc/draw_thickline.html

Try that.

Author:  goroyoshi [ Sun Apr 03, 2011 6:17 pm ]
Post subject:  RE:Draw.ThickLine help file is a little confusing

my code pretty much was

code:

setscreen ("offscreenonly,nobuttonbar")
...
Draw.ThickLine

Author:  Raknarg [ Sun Apr 03, 2011 6:18 pm ]
Post subject:  RE:Draw.ThickLine help file is a little confusing

You used View.Update, right?

Author:  goroyoshi [ Sun Apr 03, 2011 6:48 pm ]
Post subject:  RE:Draw.ThickLine help file is a little confusing

ya i did

Author:  Zren [ Mon Apr 04, 2011 5:09 pm ]
Post subject:  RE:Draw.ThickLine help file is a little confusing

Turing might have originally required you to set the mode as graphics, however in all the copies I've seen, it's already in graphics mode as default.

So to answer your question. No.

The alternate mode is:

View.Set("text")

Will give you the scrollbar with selectable text.

Author:  DemonWasp [ Mon Apr 04, 2011 5:45 pm ]
Post subject:  RE:Draw.ThickLine help file is a little confusing

Turing Documentation for View.Set wrote:
The default graphics mode is defined in the Turing preferences. It is good practice to set the desired mode so that the program will function properly regardless of thedefault graphics mode.


See here: View.Set documentation.


: