ptx property

Microsoft Visio Developer Reference

ptx property

See also   Example   

Gets or sets the pt.x field of the MSG structure being wrapped.

Version added

2002

Syntax

intRet = object.ptx
object.ptx = intExpression

intRet

Long. The x-coordinate of the cursor position when this message was posted.

object

Required. An expression that returns a MSGWrap object.

intExpression

Required Long. The new value of the pt.x field.

Remarks

The ptx property corresponds to the pt.x field in the MSG structure defined as part of the Microsoft Windows operating system. If an event handler is handling the OnKeystrokeMessageForAddon event, Visio passes a MSGWrap object as an argument when this event fires. A MSGWrap object is a wrapper around the Windows MSG structure.

For details, search for "MSG structure" on the Microsoft Developer Network (MSDN) Web site.