Author |
Message |
Sehroz
|
Posted: Fri Jan 11, 2008 8:13 pm Post subject: 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 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
yusong
|
Posted: Fri Jan 11, 2008 8:44 pm Post subject: RE:Scroling:| |
|
|
You could use the Turing GUI |
|
|
|
|
|
Sehroz
|
Posted: Fri Jan 11, 2008 8:51 pm Post subject: Re: Scroling:| |
|
|
please explain... |
|
|
|
|
|
Tony
|
Posted: Fri Jan 11, 2008 11:52 pm Post subject: RE:Scroling:| |
|
|
setting the view mode to "text" might work, assuming you're only outputting text to screen
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Clayton
|
Posted: Sat Jan 12, 2008 9:38 am Post subject: 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
|
Posted: Sat Jan 12, 2008 9:53 am Post subject: Re: Scroling:| |
|
|
If your reading a large file, then set it to Text so a scroll bar does appear on the side. |
|
|
|
|
|
Sehroz
|
Posted: Sat Jan 12, 2008 10:45 am Post subject: Re: Scroling:| |
|
|
yea but view text doesnt work if i have my seen set to maxx and maxy and i have fillbox's |
|
|
|
|
|
Sean
|
Posted: Sat Jan 12, 2008 10:53 am Post subject: Re: Scroling:| |
|
|
Then create a scroll bar of your own, I've seen Gooie do it before. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
ericfourfour
|
Posted: Sat Jan 12, 2008 11:03 am Post subject: Re: Scroling:| |
|
|
Just to clear things up between Tony and Clayton. Turing defaults to graphics mode.
Compare this:
Turing: | for i : 1 .. 100
put i
end for
|
to this:
Turing: | View.Set ("text")
for i : 1 .. 100
put i
end for |
|
|
|
|
|
|
Sehroz
|
Posted: Sat Jan 12, 2008 12:18 pm Post subject: Re: Scroling:| |
|
|
what do u mean make a scroll by my own? |
|
|
|
|
|
Gooie
|
Posted: Sat Jan 12, 2008 12:37 pm Post subject: Re: Scroling:| |
|
|
Sehroz @ January 12th, 12:18 pm wrote: 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.) |
|
|
|
|
|
|