On 11/13/19 10:11 AM, dunbarx--- via use-livecode wrote:
The selectedLoc will give the loc in window coordinates, not the "local" Y coordinate within the field of interest, which is what I thought you wanted. I cannot imagine what value that would have, since it depends on where the stack window is currently placed. Craig
SelectedLoc uses local (card) coordinates, not screen coordinates. It does not give coordinates relative to the field itself though, as you said. It doesn't matter where the stack is placed on screen since the coordinates are based on the topleft of the card.
I've used it for aligning other controls, like a semi-transparent field to simulate "dragging" a line of text.
-- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode