Page 1 of 1
New to Coding. Stuck now.. Need help
Posted: Wed Dec 24, 2014 6:16 pm
by prajeesh K
Hello to all,
I am completely new to coding, but found livecode as very interesting. I am just playing around by creating a test app. I have been able to successfully add image. Now i dont want to use the standard Paint tools provided by livecode. Instead i want to code it out. Especially the rectangle , and also help in selecting part of images through cursor movement.
Re: New to Coding. Stuck now.. Need help
Posted: Wed Dec 24, 2014 7:07 pm
by dunbarx
Hi.
Try this in a button somewhere:
Code: Select all
on mouseUp
create graphic "newGraphic"
end mouseUp
Now this is just to show you that the "create" command is your friend. But were you comfortable with "in a button somewhere"? Did you know how to place a "mouseUp" handler in such a button's script? In other words, where are you in your LC learning curve? Write back. What would you do if it was NOT a rectangle graphic you wanted? That sort of thing is where this roads starts...
Craig newman
Re: New to Coding. Stuck now.. Need help
Posted: Wed Dec 24, 2014 7:12 pm
by dunbarx
Just reread the latter part of your post.
Firstly, as I said, let's find out where you are with learning LC.
But then, what exactly did you mean by "selecting part of images through cursor movement"? LC can do anything at all, but I am not sure what you intended.
Craig
Re: New to Coding. Stuck now.. Need help
Posted: Wed Dec 24, 2014 7:42 pm
by jmburnod
Hi,
"import snapshoot" could be the trick.
and you can select a part of screen with cursor and LC import it in a new img
Best regards
Jean-Marc
Re: New to Coding. Stuck now.. Need help
Posted: Thu Dec 25, 2014 5:17 am
by prajeesh K
Hi All,
Thanks for the reply. I have just started. Created the basic calculator app. That's how i got some confidence of creating an app by myself. yes i am comfortable with the mouseup

... My idea is to have a button to select image externally.(this is working fine for me). Then edit the image using custom paint tool (similar to the one provided by livecode tool kit). I want to place the paint tool in my app.

. Make some changes and save it ( I have not reached to that level

)
The idea for cursor movement is to crop a part of image which is not defined by any geometric shape mentioned in the paint tool. I should be able to crop the image in any shape.
Hopefully i am able to clarify myself
Prajeesh
Re: New to Coding. Stuck now.. Need help
Posted: Thu Dec 25, 2014 1:16 pm
by Klaus
Namaste Prajeesh,
well, your wishes are quite advanced stuff
I would recommend to get the basics of Livecode first and start small, one step after another.
Here some really great learning resources:
http://www.hyperactivesw.com/revscriptc ... ences.html
Best
Klaus
Re: New to Coding. Stuck now.. Need help
Posted: Thu Dec 25, 2014 3:09 pm
by prajeesh K
Hallo Klaus,

.... I just came up with this idea so thought of working on it. Well advised ...

... i will start going through the link provided by you.
But, would love to know the basic approach of it
Regards,
Prajeesh