I have a user interface concept that I'm investigating. The end application is to monitor the status of some parameters in equipment racks. Since there is limited space on the screen and since there are so many racks, I thought it might work for the client to be able to click on an empty sub-panel in an array of sub-panels on the user interface and be prompted for the name of the rack that should have its information displayed there. When the selection is made, the miniature front panel for that VI would be placed in the sub-panel. My experiment, however, shows that there does not appear to be any events on sub-panels. Is there any way to do this other than by using the coordinates of the mouse click in the Pane event?
Solved! Go to Solution.
You can register for dynamic events on a subpanel reference. It's odd that the events don't show up in the event structure.
These are both interesting options. The problem with using dynamic event registration is that it requires a priori knowledge of the number of sub-panels that will be used. This is not a problem by my original statement but I have plans to script this process later on so I will now focus my attention on how to script a new sub-panel and insert a VI into it.
Thanks to both of you for your comments and suggestions. 🙂
You can register events for an array of subpanels, and switch actions based on the ctrl reference.