====== POSBYCLIENTCURSOR method (PropertyGrid) ======
==== Description ====
Returns the closest visible property item to the passed client-area coordinates.
==== Syntax ====
itemPos = Exec_Method( ctrlEntID,
"POSBYCLIENTCURSOR",
xPos,
yPos )
==== Parameters ====
^Name^Required^Description^
|xPos|No|X-position of the cursor in client coordinates|
|yPos|No|Y-position of the cursor in client coordinates|
==== Returns ====
The position of the closest property item in the "visible" list, or null if the coordinates are not above an item.
==== Remarks ====
If xPos and yPos are omitted the current cursor position is used instead.
==== Example ====
$Insert PS_Property_Grid_Equates
$Insert Logical
CtrlEntID = @Window : ".PRG_MAIN"
XPos = 10; XPos = 20
ItemPos = Exec_Method( CtrlEntID, "POSBYCLIENTCURSOR", XPos, YPos )
If ItemPos Then
* // Get the item details from the position
Item = Get_Property( CtrlEntID, "LIST", ItemPos )
End
==== See Also ====
N/A