Method XbpTreeView():itemFromPos() Foundation

Retrieves an item in the tree view from the mouse position.

Syntax
:itemFromPos( <aPos> ) --> oTreeViewItem | NIL
Parameters
<aPos> := { nX, nY }
The parameter <aPos> is a two element array holding numeric values for the X and Y coordinate. It is usually the position of the mouse pointer.
Return

This method returns the XbpTreeviewItem object at the given position or NIL if there is no item at that position.

Description

The method :itemFromPos() is mostly used to determine the XbpTreeviewItem that is clicked with the mouse pointer. In this case, the first message parameter of the AppEvent() function is passed for <aPos>.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.