Hello Richard,
What I wanted to do is to set the geometry of an object by script and
not writing a script that resizes objects when the stack is resized.
Am I clear.
What I wanted to know is if an object's geometry is a sort of
property that can be set.
If not I'll do it the way you suggested.
Thanks.
�rIC
Le 8 juin 05 � 22:59, Richard Gaskin a �crit :
�ric Miclo wrote:
Does someone know if there is a way to set an object's geometry
by script and where I can find some documentation to write the
corresponding scripts.
The Geometry Manager is triggered by the engine's resizeStack
message. You can use that message directly like this:
on resizeStack x,y
set the rect of fld 1 to 20,12,x-20,y-20
end resizeStack
In the card or stack script of a stack containing a field, that
script will resize the field's rectangle so its topleft is at
20,12, and the right is 20 pixels in from the right edge of the
stack and the bottom is 20 pixels up from the bottom of the stack.
--
Richard Gaskin
Fourth World Media Corporation
__________________________________________________
Rev tools and more: http://www.fourthworld.com/rev
_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution
-- My NeXT computer will Be a Mac too! --
_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution