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

Username:   Password: 
 RegisterRegister   
 help with a paint program!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
chibitenshi_03




PostPosted: Sun Jan 04, 2004 4:13 pm   Post subject: help with a paint program!

i'm trying to make a paint program but i don't know how to make buttons where the user can choose a color and then draw pictures. Please help!!
Sponsor
Sponsor
Sponsor
sponsor
Homer_simpson




PostPosted: Sun Jan 04, 2004 4:32 pm   Post subject: (No subject)

check out turing gui...
chibitenshi_03




PostPosted: Sun Jan 04, 2004 4:59 pm   Post subject: (No subject)

i tried using GUI but i don't understand it
Tony




PostPosted: Sun Jan 04, 2004 7:12 pm   Post subject: (No subject)

Confused try harder? Thinking

seriously though... Turing's GUI sux, but its alright for few simple buttons
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
DanShadow




PostPosted: Sun Jan 04, 2004 7:42 pm   Post subject: (No subject)

If you want you 'could' use whatdotcolor, or boundaries. Like there could be several boxes, with several different colors in them. You could make it so it the player left clicks, and its within any of those boxes, it could use whatdotcolor to change the color, or you could just make it:
code:

if mousex>red_box_boundary_x-100 and mousex<red_box_boundary_x+100 and mousey>red_box_boundary_y-100 and mousey<red_box_boundary_y+100 then
color:=12   %red=12
end if
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: