In SuperCard I'd probably use 'grab', as in
Code: Select all
grab me within the rect of cd grc "photo"
k
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
grab me within the rect of cd grc "photo"
Actually, there is a within clause Introduced: 1.0, however I think they work slightly differently - and a lot more -FourthWorld wrote: ↑Mon Dec 18, 2017 11:27 pmI don't believe LC has added a "within" clause, though Jacque has requested something along those lines:
http://quality.livecode.com/show_bug.cgi?id=4890
And Jm came up with that quick, good thread.Lc Dictionary wrote:Summary:
Evaluates to true if a point is inside the specified rectangle, false if it is outside.
Examples:
"22,33" is within "22,17,150,200" -- evaluates to true
the mouseLoc is within the rect of this stack
Use the is within operator to determine whether a point is inside a rectangle.