positioning graphics in relation to a line in a text field

Curt Ford cford at mailbox.sc.edu
Mon Apr 1 17:21:13 EDT 2013


Ah, this is getting me pretty close:

   select line 3 of fld "Field2"
   set the left of graphic "Rectangle" to item 1 of the selectedLoc - 10
   set the top of graphic "Rectangle" to item 2 of the selectedLoc - 10
   select empty

And checking the formattedHeight of the selectedLine will let me adjust the size of the rectangle in accordance with any length or wrapping issues of the line to box up.

Thanks everyone!

Curt





More information about the use-livecode mailing list