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

Username:   Password: 
 RegisterRegister   
 Grade 11 Paint Program
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
GeoBoy




PostPosted: Thu Dec 07, 2006 9:30 pm   Post subject: Grade 11 Paint Program

Here is my paint program I did for my grade 11 project. Make sure you read the comments if you need help understanding something.

Any helpful tips would be nice since this will be due soon.

***1024 by 768 Is the minimum resolution required***



Paint Final.zip
 Description:
My Paint Program :)

Download
 Filename:  Paint Final.zip
 Filesize:  57.18 KB
 Downloaded:  256 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
ericfourfour




PostPosted: Thu Dec 07, 2006 10:35 pm   Post subject: (No subject)

Before running your program I noticed you had over 50 globals variables. I'd recommend having less than 1. There must be a way you can work around declaring a bunch of variables at the top of your program by maybe using parameters.

Note: I'll edit some more suggestions in when I feel like it.

Edit: I also found that you were updating the entire screen every frame. You only need to update the middle box and that side colour box. There is a procedure called View.UpdateArea which only updates a given area.
GeoBoy




PostPosted: Fri Dec 08, 2006 6:47 pm   Post subject: hmm

hmm i think some told me that View.UpdateArea is slower or something im gonna try it out and see. Smile Smile
GeoBoy




PostPosted: Fri Dec 08, 2006 6:56 pm   Post subject: hmm

Ok i tried to do view.updatearea but it seems i have an older version of turing and its not available in this version.

its like verion 4.04 or something .. Embarassed
ericfourfour




PostPosted: Sat Dec 09, 2006 11:34 pm   Post subject: (No subject)

Yeah that's fine. Maybe you should work on keeping track of actions to allow more than one undo. I actually find it pretty cool that you had one.
Prince Pwn




PostPosted: Sun Dec 10, 2006 9:49 pm   Post subject: (No subject)

Small suggestions for loading a picture. Make the default directory "C:/Doucments and Settings/"+Sys.GetUserName+"/My Documents/My Pictures/" and take off the adding of the ".bmp" so the user has to type that in. And add a :* after your get statment so it can read spaces Smile

This is a sweet paint program!
BenLi




PostPosted: Tue Dec 12, 2006 9:00 pm   Post subject: (No subject)

hey george, the program looks slick. your fill doesn't work though
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: