Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

CalcIndexFromPosPix Method, SftTree Object

Returns the item index for given coordinates.

Syntax

VB.NETBoolean = object.CalcIndexFromPosPix(ByVal XPosPix As OLE_XPOS_PIXELS, ByVal YPosPix As OLE_YPOS_PIXELS, ByRef ItemIndex As Integer, ByRef RowHeader As Boolean) As Boolean
VBBoolean = object.CalcIndexFromPosPix(ByVal XPosPix As OLE_XPOS_PIXELS, ByVal YPosPix As OLE_YPOS_PIXELS, ItemIndex As Long, RowHeader As Boolean) As Boolean
C#.NETbool Boolean = object.CalcIndexFromPosPix(OLE_XPOS_PIXELS XPosPix, OLE_YPOS_PIXELS YPosPix, out int ItemIndex, out bool RowHeader);
VC++VARIANT_BOOL Boolean = object->CalcIndexFromPosPix(OLE_XPOS_PIXELS XPosPix, OLE_YPOS_PIXELS YPosPix, long* ItemIndex, VARIANT_BOOL* RowHeader);
CHRESULT object->raw_CalcIndexFromPosPix(OLE_XPOS_PIXELS XPosPix, OLE_YPOS_PIXELS YPosPix, long* ItemIndex, VARIANT_BOOL* RowHeader, VARIANT_BOOL* Boolean);

object

A SftTree object.

XPosPix

The horizontal position relative to the top, left corner of the tree control in pixels.

YPosPix

The vertical position relative to the top, left corner of the tree control in pixels.

ItemIndex

Returns the item index at the specified coordinates xPosPix, yPosPix.

RowHeader

Returns True if the position is in the row header area, otherwise False is returned.

Boolean

Returns the item index for given coordinates.

BooleanDescription
TrueAn item was located at the specified coordinates xPosPix, yPosPix.
FalseNo item was located at the specified coordinates xPosPix, yPosPix.

Comments

The CalcIndexFromPosPix method returns the item index for given coordinates.

The CalcIndexFromPos and CalcIndexFromPosPix methods are synonyms, but may use different coordinate systems.

CalcCellFromPosPix can be used to determine the cell. CalcColumnFromPosPix can be used to determine The zero-based column number.

See Also SftTree Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.