Touch Change Event

Visual LANSA Feature

Touch Change Event

DirectX Only

Fired repeatedly between the TouchStart and TouchEnd boundaries to provide details of the touch events.

Having access to the details of a touch event allows the developer to control the nature of the touch processing. For example, the following code stops an image being moved beyond the bounds of its parent control.

Evtroutine Handling(#Image.TouchChange)

 

#Image.Top := #Image.Top.Bound( 0 (#Com_owner.Height - #Image.Height) )

#Image.Left := #Image.Left.Bound( 0 (#com_owner.Width - #Image.Width) )

 

Endroutine