Difference between revisions of "API Mouse.GetPosition2D"

From Flowcode Help
Jump to navigationJump to search
(XML import)
(XML import)
Line 3: Line 3:
  
 
<div style="width:25%; float:right" class="toc">
 
<div style="width:25%; float:right" class="toc">
===Class hierarchy===[[API |API ]]
+
===Class hierarchy===[[API Mouse|Mouse]]
:[[API Mouse|Mouse]]
+
:[[API Mouse|GetPosition2D]]
::GetPosition2D
 
 
</div>
 
</div>
 
__TOC__
 
__TOC__

Revision as of 21:22, 11 May 2013

<sidebar>API contents</sidebar> Gets the X/Y position of the mouse in screen coords

===Class hierarchy===Mouse

GetPosition2D

Parameters

LONG X

This parameter is returned back to the caller
Pixel screen coordinate from the left of the panel area

LONG Y

This parameter is returned back to the caller
Pixel screen coordinate from the top of the panel area

Return value

HANDLE

Returns the X/Y position of the mouse in screen coords

Detailed description

No additional information

Examples

Calling in a calculation

  • Declare a variable 'result' of type HANDLE
  • Add to a calculation icon:
    result = ::Mouse.GetPosition2D(return_x, return_y)