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

Username:   Password: 
 RegisterRegister   
 Drawing program help :D
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Gadiuz




PostPosted: Mon Apr 28, 2008 6:53 pm   Post subject: Drawing program help :D

I've been working on this program for fun during my free time in my computer science class and hit a snag. When I try to draw using the equivalent to a pen tool the animation is to slow to keep up and i get blank spaces. help please Very Happy


fdsfs.t
 Description:
The section for my pen tool

Download
 Filename:  fdsfs.t
 Filesize:  256 Bytes
 Downloaded:  118 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
cavetroll




PostPosted: Mon Apr 28, 2008 8:15 pm   Post subject: Re: Drawing program help :D

Why are you updating only a specific area? Just call regular View.Update instead View.UpdateArea (40, 400, 1000, 0) this will update the whole screen. As for the slow animation, I don't think you can do anything about that. Just move the mouse slower. Laughing
gitoxa




PostPosted: Mon Apr 28, 2008 8:18 pm   Post subject: Re: Drawing program help :D

He's probably updating just the area because the code he posted is only a sample. In a paint program, you generally aren't allowed to draw on your gui. Razz
cavetroll




PostPosted: Mon Apr 28, 2008 8:26 pm   Post subject: Re: Drawing program help :D

My bad, that makes sense. I guess my post isn't much use then.

But I can't help but wonder why he asked about white spaces if he was intending to not display circles in the white spaces. Also when you click out of the window the circles get updated so it would make more sense to draw a white rectangle and update the whole screen. Either that or check where the circle is and don't allow drawing in specific areas.
Gadiuz




PostPosted: Tue Apr 29, 2008 7:51 am   Post subject: Re: Drawing program help :D

Ya I was going to try to put in a tool bar for different colors, and things like drawing boxes and lines. But I decided to try to just get this to work first. I dont even know if I make the box and line tools. ( I barely know any turing )
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  [ 5 Posts ]
Jump to:   


Style:  
Search: