Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Scroling:|
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Sehroz




PostPosted: 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
Sponsor
sponsor
yusong




PostPosted: Fri Jan 11, 2008 8:44 pm   Post subject: RE:Scroling:|

You could use the Turing GUI
Sehroz




PostPosted: Fri Jan 11, 2008 8:51 pm   Post subject: Re: Scroling:|

please explain...Neutral
Tony




PostPosted: 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
code:

View.Set("text")
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Clayton




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: 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
Sponsor
sponsor
ericfourfour




PostPosted: 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




PostPosted: Sat Jan 12, 2008 12:18 pm   Post subject: Re: Scroling:|

what do u mean make a scroll by my own?
Gooie




PostPosted: 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.)
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 11 Posts ]
Jump to:   


Style:  
Search: