Jump to content

API Mouse.GetPosition2D: Difference between revisions

From Flowcode Help
Admin (talk | contribs)
XML import
Admin (talk | contribs)
XML import
Line 11: Line 11:
==Parameters==
==Parameters==
[[Variable types|LONG]] ''X''
[[Variable types|LONG]] ''X''
:Pixel screen coordinate from the left of the panel area
:''This parameter is returned back to the caller''
:''This parameter is returned back to the caller''
:Pixel screen coordinate from the left of the panel area


[[Variable types|LONG]] ''Y''
[[Variable types|LONG]] ''Y''
:Pixel screen coordinate from the top of the panel area
:''This parameter is returned back to the caller''
:''This parameter is returned back to the caller''
:Pixel screen coordinate from the top of the panel area
 


==Return value==
==Return value==
Line 22: Line 23:


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


==Detailed description==
==Detailed description==

Revision as of 01:53, 12 May 2013

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

Class hierarchy

Mouse

GetPosition2D

Parameters

LONG X

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

LONG Y

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


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)

No additional information