hi
i checked all the codes as much as my knowledge "first draw a line by using tools box then move or change coordinates"
but i want to create a line from one point to another point by using codes
i am trying to warm up with this language and myself is familiar with asymetrix toolbook
thanks
creating a line by script
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Re: creating a line by script
Try the script below in a button:
This gives you a graphic control that you can manipulate further by changing its properties.
HTH,
Jan Schenkel
Code: Select all
on mouseUp
reset the templateGraphic
set the style of the templateGraphic to "line"
set the points of the templateGraphic to "100,100" & return & "200,250"
create graphic
end mouseUp
HTH,
Jan Schenkel
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Re: creating a line by script
Hi Sadan,
please take care to post in the correct section the next time!
Creating a line graphic in LiveCode by script is definitvely NOT off-topic
Best
Klaus
P.S.
Unfortunately I am not able/allowed to move these posting to the right forum.
please take care to post in the correct section the next time!
Creating a line graphic in LiveCode by script is definitvely NOT off-topic

Best
Klaus
P.S.
Unfortunately I am not able/allowed to move these posting to the right forum.