[beginner] x,y coordinates in LiveCode

Bob Sneidar bobsneidar at iotecdigital.com
Tue Jan 20 10:48:23 EST 2015


I can see the wisdom of this before we had the topLeft and bottomRight properties. You could simply parse the first two items and the last two items and get the same thing.

Bob S


On Jan 10, 2015, at 09:50 , Richard Gaskin <ambassador at fourthworld.com<mailto:ambassador at fourthworld.com>> wrote:

Like most languages, LiveCode provides a way to express the bounding rectangle of an object, as well as its location.

But it may be helpful to note that these values may be different from what you'll find in other languages.

For example, in JavaScript/CSS, the order of rectangle coordinates is:

  top, right, bottom, left

...but in LiveCode (and other xTalks) the order is:

  left, top, right, bottom




More information about the use-livecode mailing list