JVCL Help:TJvCustomInspector.CalcItemIndex

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Determines which item is at the specified position.


Pascal

 functionCalcItemIndex(X: Integer; Y: Integer; varRect: TRect): Integer; virtual;


Parameters

Parameters Description
X: Integer X-position to check
Y: Integer Y-position to check
var Rect: TRect Rectangle of item found. If no item was found, Rect will be undefined.


Return Value

Index of the item found at the given position or -1 if no item is displayed at the given position.


Description

CalcItemIndex determines which item is displayed at the given position. In addition it will return the rectangle for that item. If the specified position has no item, the function will return -1 and the Rect parameter will be undefined.


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page