ArcPad Scripting Object Model
TrackArrow Method
See Also  Example  Send comments on this topic.
Map Object : TrackArrow Method

Glossary Item Box

Description

Captures the pointer location as it is moved across the map view and draws a rotated arrow. Returns the arrow's angle of rotation.

Syntax

object.TrackArrow

Return Type

Double

Remarks

Scripts that use the TrackArrow method should be called when an OnPointerDown event occurs for a ToolItem object. The user would click the ToolItem object (tool button), press and hold the mouse button to display the arrow, then drag the mouse pointer to rotate the arrow to the desired angle, and then release the mouse button to pass the angle to a variable.

Example

Displays a user-rotatable arrow on the screen and displays the angle of the arrow in a message box.
TrackArrow Example (VBScript)Copy Code
Sub ClickedDown
      Dim dblAngle
      dblAngle = Map.TrackArrow
      MsgBox dblAngle, vbInformation, "Angle of arrow"
End Sub

See Also

© 2012 All Rights Reserved.