New to Coding. Stuck now.. Need help
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 3
- Joined: Sun Dec 21, 2014 12:21 pm
New to Coding. Stuck now.. Need help
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.
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
Hi.
Try this in a button somewhere:
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
Try this in a button somewhere:
Code: Select all
on mouseUp
create graphic "newGraphic"
end mouseUp
Craig newman
Re: New to Coding. Stuck now.. Need help
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
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
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
"import snapshoot" could be the trick.
Code: Select all
import snapshoot

Best regards
Jean-Marc
https://alternatic.ch
-
- Posts: 3
- Joined: Sun Dec 21, 2014 12:21 pm
Re: New to Coding. Stuck now.. Need help
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
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



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
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
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
-
- Posts: 3
- Joined: Sun Dec 21, 2014 12:21 pm
Re: New to Coding. Stuck now.. Need help
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


But, would love to know the basic approach of it

Regards,
Prajeesh