|
|
|
SftBoxItems.HitTestPix Method |
Returns the item found at given coordinates in pixels.
Syntax
VB.NET |
object.HitTestPix(ByVal xPix As Integer, ByVal yPix As Integer, ByRef ItemIndex As Integer, ByRef Main As Boolean) |
||
VB |
object.HitTestPix(ByVal xPix As Long, ByVal yPix As Long, ItemIndex As Long, Main As Boolean) |
||
C#.NET |
void object.HitTestPix(int xPix, int yPix, out int ItemIndex, out bool Main); |
||
VC++ |
HRESULT object->HitTestPix(long xPix, long yPix, long* ItemIndex, VARIANT_BOOL* Main); |
||
C |
HRESULT object->raw_HitTestPix(long xPix, long yPix, long* ItemIndex, VARIANT_BOOL* Main); |
||
Delphi |
procedure object.HitTestPix(xPix : Integer, yPix : Integer, out ItemIndex : Integer, out Main : WordBool); |
object
A SftBoxItems object.
xPix
The x coordinate of the location for which the item index is to be returned. The units used are pixels.
yPix
The y coordinate of the location for which the item index is to be returned. The units used are pixels.
ItemIndex
Returns the zero-based index of the item at the given location xPix and yPix. -1 is returned if no item is present.
Main
Returns True if the coordinates describe a point in the static or edit control portion. False is returned if the coordinates and the item are located in the drop down portion.
Comments
The HitTestPix method returns the item found at given coordinates in pixels.
The Items.HitTest and Items.HitTestPix methods are synonyms, but may use different coordinate systems. The Items.HitTestV method is used with Internet Explorer/VBScript.
If an item is found at the coordinates (xPix, yPix), the zero-based index of the item is returned.
The HitTest method could be used during an OLEDragOver event to determine which item is currently the target of the drag & drop operation.
The Items.HitTestCell method can be used to determine the cell found at given coordinates.