Allowing user to draw shapes

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Paul_Malloy
Posts: 16
Joined: Thu Mar 20, 2008 9:45 pm

Allowing user to draw shapes

Post by Paul_Malloy » Mon May 12, 2014 7:56 pm

Hi Everyone---

I am coming back to LiveCode after a long layoff and I am trying to develop a neuropsychological (cognitive) test. I want to have patients copy increasingly difficult geometric shapes (e.g. square, diamond, diamond inside a square) etc. How can I allow the user to draw a shape in a field and then save the image for a report? Thanks in advance.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Allowing user to draw shapes

Post by Dixie » Mon May 12, 2014 8:05 pm

hey..

Attached a stack for you.. it was really written for mobile but will run on the desktop... It might give you some pointers...:-) Just use the mouse to draw whatever you want...
Attachments
Draw.livecode.zip
(1.66 KiB) Downloaded 236 times

Paul_Malloy
Posts: 16
Joined: Thu Mar 20, 2008 9:45 pm

Re: Allowing user to draw shapes

Post by Paul_Malloy » Tue May 13, 2014 3:38 pm

Thanks for the help. I also found this forum string that had some useful hints:

http://forums.runrev.com/viewtopic.php? ... apes#p9520

Paul

Post Reply