Jump to content

API Mouse.GetPosition2D: Difference between revisions

From Flowcode Help
Admin (talk | contribs)
XML import of API auto-gen
 
Admin (talk | contribs)
XML import API auto-gen
Line 1: Line 1:
wiki page name
wiki page name
==MouseGetPosition2D==
Gets the X/Y position of the mouse in screen coords


Gets the X/Y position of the mouse in screen coords
----


===Parameters===
===Parameters===
Line 23: Line 21:


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

Revision as of 15:34, 10 May 2013

wiki page name Gets the X/Y position of the mouse in screen coords


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)