LC Data Form example code question
Posted: Thu Jul 07, 2016 5:53 pm
Hello Again...
I'm having some trouble understanding LC syntax for the data grid form example. I've looked in the dictionary, but don't find an explanation that is enough for my brain. Would one of you LC gurus take this line by line for me?
I'm trying to rearrange the image to display on the left side of the data form. I've tried changing the right and left in the code and fooling (as in fool) around with the numbers, but all that does is move the image further off to the right. I've also put the image on the left in the template. I wish these examples would also be commented with a line specific explanation for the reader. At least for noobs, it would be helpful.
As always, I'm in your debt. -Rachel
I'm having some trouble understanding LC syntax for the data grid form example. I've looked in the dictionary, but don't find an explanation that is enough for my brain. Would one of you LC gurus take this line by line for me?
I'm trying to rearrange the image to display on the left side of the data form. I've tried changing the right and left in the code and fooling (as in fool) around with the numbers, but all that does is move the image further off to the right. I've also put the image on the left in the template. I wish these examples would also be commented with a line specific explanation for the reader. At least for noobs, it would be helpful.

Code: Select all
-- Example:
set the right of image "image" of me to item 3 of pControlRect - 5 //what does this line mean?
put the left of image "image" of me into theLeft //what does this line mean?
put the rect of field "name" of me into theRect //what does this line mean?
put theLeft - 10 into item 3 of theRect //what does this line mean?
set the rect of field "Name" of me to theRect //what does this line mean?
put the rect of field "title" of me into theRect //what does this line mean?
put theLeft - 1 into item 3 of theRect //what does this line mean?
set the rect of field "Title" of me to theRect //what does this line mean?
set the rect of graphic "Background" of me to pControlRect