Computer Science Canada Scroling:| |
Author: | Sehroz [ 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 |
Author: | yusong [ Fri Jan 11, 2008 8:44 pm ] |
Post subject: | RE:Scroling:| |
You could use the Turing GUI |
Author: | Sehroz [ Fri Jan 11, 2008 8:51 pm ] |
Post subject: | Re: Scroling:| |
please explain... ![]() |
Author: | Tony [ 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
|
Author: | Clayton [ 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. |
Author: | Sean [ 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. |
Author: | Sehroz [ 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 |
Author: | Sean [ 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. |
Author: | ericfourfour [ 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:
to this:
|
Author: | Sehroz [ Sat Jan 12, 2008 12:18 pm ] |
Post subject: | Re: Scroling:| |
what do u mean make a scroll by my own? |
Author: | Gooie [ 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.) |