04-14-2008 06:41 PM
04-15-2008 03:20 AM
Hi Erik,
see the attached example. It searches for all reference, also this ones which are in other controls. After you have all references you can read the position of it. If this not help, please describe in more detail what you want.
Hope it helps.
Mike
04-15-2008 02:12 PM
Mike,
That was EXACTLY what I was lloking for. Thank you very much.
Erik.
04-16-2008 02:44 PM
For future reference and for any LabVIEW users who have older versions here are the Front Panel displays before running the VI along with the Wiring Diagram with each of the four cases for handling the various types of ClassIDs that can contain child controls. X1, X@, Y1, and Y2 are the coordinates of the top left and bottom right corners of each control. These coordinates can then be used to determine which control the mouse is pointing at.
In my own project I did further evaluation to eliminate all parent controls (controls that contain other controls) and passed along only the controls that were end-nodes (controls that contain no other controls). Also, the control's refnum was stored for later use.
The bottom picture shows the data gathered during the execution of this VI.
Thanks again, Mike!