guides:programming:programmers_reference_manual:posbyclientcursor_method_propertygrid

POSBYCLIENTCURSOR method (PropertyGrid)

Returns the closest visible property item to the passed client-area coordinates.

itemPos = Exec_Method( ctrlEntID,           
                       "POSBYCLIENTCURSOR", 
                       xPos,                
                       yPos )
NameRequiredDescription
xPosNoX-position of the cursor in client coordinates
yPosNoY-position of the cursor in client coordinates

The position of the closest property item in the "visible" list, or null if the coordinates are not above an item.

If xPos and yPos are omitted the current cursor position is used instead.

 
$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
 
 
 

N/A

  • guides/programming/programmers_reference_manual/posbyclientcursor_method_propertygrid.txt
  • Last modified: 2023/10/25 10:50
  • by 127.0.0.1