Card auto sizing
Björnke von Gierke
bvg at mac.com
Wed Feb 27 07:48:53 EST 2013
you can't set the card's rectangle, and the stack uses a different coordination system. So you need to convert using globalLoc which is the inverse of localLoc.
on mouseUp
lock screen
--gather and set coordinates for stack
put the globalLoc of the topleft of field 1 into partOne
put the globalLoc of the bottomright of field 1 into partTwo
set the rectangle of this stack to partOne,partTwo
--now the objects are not within the visible part of the stack, readjust all objects
set the topleft of field 1 to 0,0
end mouseUp
On 27.02.2013, at 13:40, Camm wrote:
> It it possible to auto size a card to the size of a field of that card ?
--
Use an alternative Dictionary viewer:
http://bjoernke.com/bvgdocu/
Chat with other RunRev developers:
http://bjoernke.com/chatrev/
More information about the use-livecode
mailing list