Search
FlowChart.ScreenPtToDocPt Method
See Also
 



Gets the diagram coordinates of a screen point.

 Syntax

VB6  Copy Code

Public Sub ScreenPtToDocPt( _
    ByVal x As Long, _
    ByVal y As Long, _
    ByRef px As Long, _
    ByRef py As Long _
)

C++  Copy Code

public:
void ScreenPtToDocPt (
    int x,
    int y,
    int* px,
    int* py
)

 Parameters

x
The x coordinate of a screen point.
y
The y coordinate of a screen point.
px
The x coordinate of the point in document coordinates.
py
The y coordinate of the point in document coordinates.

 Remarks

Gets the document coordinates of the point (x, y). The mapping between the screen and document (logical) coordinates depends on the location of FlowChartX, its current scroll position and zoom factor. You can use this method together with ObjectFromPoint to find out which item lies under the mouse cursor, when you have the mouse position expressed in screen coordinates.

 See Also