MoveFrom Animation (PRIM_ANIM.MoveFrom)

Move a control from the specified position to the current position

Ancestors - Animation Item (PRIM_ANIM.AnimationItem) Object (PRIM_OBJT)

Details

The MoveFrom animation moves the managed control from the Left and Top specified to its current location.
 
When the animation completes the control Left and Top will have be unnaffected.
 
For most requirements, the MoveFrom method is a simpler solution.

Example

In this example, the label moves from the bottom right corner.
Function Options(*DIRECT)
Begin_Com Role(*EXTENDS #PRIM_FORM) Clientheight(349) Clientwidth(576) Height(388) Width(592) Left(218) Top(203) Theme(#SYS_THEME<2015Orange>)
 
   Define_Com Class(#PRIM_VS.Style) Name(#Style1) Backgroundbrush(#Brush1)
   Define_Com Class(#PRIM_VS.SolidBrush) Name(#Brush1) Color(Theme500)
 
   Define_Com Class(#PRIM_labl) Name(#Label) Displayposition(1) Left(8) Parent(#COM_OWNER) Tabposition(1) Top(8) Tabstop(False) Height(65) Width(105) Alignment(Center) Verticalalignment(Center) Style(#Style1) Caption('Click')
 
   Define_Com Class(#prim_anim) Name(#Animation)
   Define_Com Class(#prim_anim.MoveFrom) Name(#Animation1) Parent(#Animation) Manage(#Label) Duration(3000) Top(250) Left(400)
 
   Evtroutine Handling(#Label.Click)
 
      #Animation.Start
 
   Endroutine
 
End_Com

Properties

NameDescription
ComponentClassNameComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)
ComponentMembersComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)
ComponentPatternNameComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)
ComponentTagGeneric space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)
ComponentTypeComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)
ComponentTypeNameComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)
DurationNumber of milliseconds to take to complete the animation Inherited from Animation Item (PRIM_ANIM.AnimationItem)
LeftHorizontal position to move from
ManageReference to the control affected by the animation
NameName identifies the component Inherited from Object (PRIM_OBJT)
OwnerOwner owns this component Inherited from Object (PRIM_OBJT)
ParentReference to the animation of which this item is a part Inherited from Animation Item (PRIM_ANIM.AnimationItem)
StartTimeNumber of milliseconds to wait before starting the animation Inherited from Animation Item (PRIM_ANIM.AnimationItem)
TopVertical position to move from

Events

NameDescription
CreateInstanceCreateInstance is signalled when an instance of a component is created Inherited from MoveFrom Animation (PRIM_ANIM.MoveFrom)
DestroyInstanceDestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from MoveFrom Animation (PRIM_ANIM.MoveFrom)

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2