Hopefully I can explain this clear enough. I am creating a drawing application. I want to be able to select different colors to draw a picture. I have buttons set for each color I want to use. I don't know how to select between different colors and then draw with that color. Any guidance would be greatly appreciated.
Thanks in advance,
Mark
Selecting Colors to draw with
Moderators: LCNeil, heatherlaine, kevinmiller, elanorb
Re: Selecting Colors to draw with
Hi Mark,
I have updated your sketchPad stack, that you emailed to us, with this feature.
I used a combination of global variables along with setting the foregroundColor of the created graphic to a requested color.
Would you like me to email this stack back to you, or would it be ok to post here in this forum topic?
Kind Regards,
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
--
-----
I have updated your sketchPad stack, that you emailed to us, with this feature.
I used a combination of global variables along with setting the foregroundColor of the created graphic to a requested color.
Would you like me to email this stack back to you, or would it be ok to post here in this forum topic?
Kind Regards,
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
--
-----
Re: Selecting Colors to draw with
I would prefer that you email me back. I really appreciate all the help.
Thanks,
Mark
Thanks,
Mark
Re: Selecting Colors to draw with
Now I am trying to use different tools to create a picture and want to select between the different tools. This is the code I think I need to use. Am I even heading in the right direction.
On the tool buttons
on mouseUp
put "spray can" into currentToolUse
end mouseUP
in the drawing area
global currentToolUse
on mouseEnter
global currentToolUse
choose currentToolUse tool
end mouseEnter
on mouseLeave
choose browser tool
end mouseLeave
On the tool buttons
on mouseUp
put "spray can" into currentToolUse
end mouseUP
in the drawing area
global currentToolUse
on mouseEnter
global currentToolUse
choose currentToolUse tool
end mouseEnter
on mouseLeave
choose browser tool
end mouseLeave