1,460 downloads
Copyright © 2006, dsaunders
All rights reserved.
Author:
dsaunders
--see readme file for contact information
Description:
Converts a pixel coordinate to an array index. Returns an array of indices with a length equal to the number of array dimensions. Also returns if the point is within the content rectangle (not on the caption, scrollbars, etc.)
Works on any N-dimensional array regardless of visibility of caption, label, index display, or scrollbars. Designed to be used on mouse events that provide the mouse coordinates.
Limitations: Property nodes do not indicate the array border width, nor if the user has chosen to display an element gap. These inputs are thus provided on the VI.
Version History:
1.0.0:
Initial release of the code.