paintin program

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

paintin program

Post by adventuresofgreg » Mon Jul 18, 2011 11:15 pm

Hello - I need to include a simple painting program in my app. Is there a sample stack somewhere that I could lift?

Thanks!
Greg Kolodziejzyk

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: painting program

Post by Mark » Tue Jul 19, 2011 1:13 am

Hi Greg,

All you need to do is include a small palette with the paint tools. The buttons should contain a simple script like

Code: Select all

on mouseUp
  choose bucket tool
end mouseUp
If you look up "choose" in the dictionary, you'll find a list of available paint tools.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply