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

Username:   Password: 
 RegisterRegister   
 How to make a Cursor
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Waked




PostPosted: Sat Mar 17, 2012 1:00 pm   Post subject: How to make a Cursor

HI, im making a simple paint program. im trying to make the shape of the cursor change every time i change the tool but its not working. is it possible to do that on Turing?
Sponsor
Sponsor
Sponsor
sponsor
mirhagk




PostPosted: Sat Mar 17, 2012 1:02 pm   Post subject: RE:How to make a Cursor

You mean the mouse cursor? You can't actually change anything about it within Turing, however you may call an external program that can do that, but I can't remember if there is one on here or not.

Other than that you have to just live with the standard mouse cursor, but you can draw your own as well, and change that one.
Waked




PostPosted: Sat Mar 17, 2012 1:06 pm   Post subject: RE:How to make a Cursor

yea i tried to make my own, but im not sure how to make it work properly. where ever i move the mouse with the shape that i made it would erase whatever is beneath it.
mirhagk




PostPosted: Sat Mar 17, 2012 1:13 pm   Post subject: RE:How to make a Cursor

yep, what you need to do is save what the paint program looks like, and then redraw every time you move the mouse. Alternatively you could use sprites which save the image behind it, and then redraw the image when it moves.
Waked




PostPosted: Sat Mar 17, 2012 1:16 pm   Post subject: Re: How to make a Cursor

i tried that but it makes the program lag and it becomes super slow. isnt there a different way?
mirhagk




PostPosted: Sat Mar 17, 2012 1:18 pm   Post subject: RE:How to make a Cursor

the 2nd method, using a sprite, or you coudl do it yourself, of just saving the part of the image that is under the cursor, then redrawing it when the cursor moves. That gets more complicated though, and is still slow.
Waked




PostPosted: Sat Mar 17, 2012 1:24 pm   Post subject: Re: How to make a Cursor

oh alright. well, thanks anyways
but i was looking for a way that would keep the program running smoothly
mirhagk




PostPosted: Sat Mar 17, 2012 1:43 pm   Post subject: RE:How to make a Cursor

using an external program to do it. You might have to write it yourself.
Sponsor
Sponsor
Sponsor
sponsor
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  [ 8 Posts ]
Jump to:   


Style:  
Search: