GetLastDropXY Method (TREEVIEW)


9.8A, PLBCMP GUI Only

 

The GetLastDropXY method retrieve the mouse coordinates where a mouse drop action occurred on the TREEVIEW object during a drag\drop user operation. These mouse coordinates can be used to determine the TREEVIEW item where the mouse drop action occurred using the ItemHitTest method. The method uses the following format:

 

[label]

{object}.GetLastDropXY

[GIVING {return}] USING [*Flags=]{flagmask}

 

Where:

label

Optional. A Program Execution Label.

object

Required. A TREEVIEW object modified.

return

Optional. A Numeric Variable that that receives the mouse X and Y coordinate value(s).

flagmask

Optional. A decimal number or Numeric Variable that is a bit mask to control behaviors of the method.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. If the value returned is zero, the ZERO Condition Flag is set.

  2. If {return} is too smal to store the returned value returned is zero, the OVER Condition Flag is set.

  3. The EOS flag is always cleared.

  4. If the {flagmask} parameter is not used, the default behavior is to return the X and Y mouse coordinates as follows:

  5.  

    {return} = ( X * 65536 ) + Y

     

  6. If the {flagmask} parameter is used, the bit mask values can be used as follows:

  7.  

    Value

    Meaning ...

    0x0

    Return the X and Y coordinates.

    0x1

    Only return the X coordinate.

    0x2

    Only return the Y coordinate.

    0x4

    Zero both X and Y coordinates.

 

 

See Also: Method Syntax, TREEVIEW Methods

 



PL/B Language Reference GetItemText Method (TREEVIEW) GetNextItem Method (TREEVIEW)