
-----------------------------------
Sehroz
Fri Jan 11, 2008 8:13 pm

Scroling:|
-----------------------------------
Hey i was just wondering whats the code to create a scrolling bar that would let you scroll up and down the page if they want to read something that is at the top. like a scroling thing on the internet  on your right side->. thanks

-----------------------------------
yusong
Fri Jan 11, 2008 8:44 pm

RE:Scroling:|
-----------------------------------
You could use the Turing GUI

-----------------------------------
Sehroz
Fri Jan 11, 2008 8:51 pm

Re: Scroling:|
-----------------------------------
please explain...:|

-----------------------------------
Tony
Fri Jan 11, 2008 11:52 pm

RE:Scroling:|
-----------------------------------
setting the view mode to "text" might work, assuming you're only outputting text to screen

View.Set("text")


-----------------------------------
Clayton
Sat Jan 12, 2008 9:38 am

RE:Scroling:|
-----------------------------------
I'm pretty sure that the run window is set in text mode by default. So your solution might not change anything Tony.

-----------------------------------
Sean
Sat Jan 12, 2008 9:53 am

Re: Scroling:|
-----------------------------------
If your reading a large file, then set it to Text so a scroll bar does appear on the side.

-----------------------------------
Sehroz
Sat Jan 12, 2008 10:45 am

Re: Scroling:|
-----------------------------------
yea but view text doesnt work if i have my seen set to maxx and maxy and i have fillbox's

-----------------------------------
Sean
Sat Jan 12, 2008 10:53 am

Re: Scroling:|
-----------------------------------
Then create a scroll bar of your own, I've seen Gooie do it before.

-----------------------------------
ericfourfour
Sat Jan 12, 2008 11:03 am

Re: Scroling:|
-----------------------------------
Just to clear things up between Tony and Clayton. Turing defaults to graphics mode.

Compare this:
for i : 1 .. 100
    put i
end for


to this:
View.Set ("text")
for i : 1 .. 100
    put i
end for

-----------------------------------
Sehroz
Sat Jan 12, 2008 12:18 pm

Re: Scroling:|
-----------------------------------
what do u mean make a scroll by my own?

-----------------------------------
Gooie
Sat Jan 12, 2008 12:37 pm

Re: Scroling:|
-----------------------------------
what do u mean make a scroll by my own?

Well, scrolling through images makes things a lot harder for scrolling. What you need is the absolute and processed coordinates for everything. 

So, say you had a dot at (100, 5000) and your screen was 500x500 how would you see the dot? You need to subtract the coordinates of all of your objects by your current view. I hope that made sense -_-*.

A scroll bar can be made by using Mouse.Where where you could press arrow keys to move the view up or down. (or rather the variable you subtract form the coordinates.)
