11-18-2009 03:45 PM
Is there a way to retain the front panel image of a VI in a subpanel after the VI containing the subpanel is stopped? The default action causes the subpanel to clear when the VI containing the subpanel is stopped but not closed.
Thanks in advance...
Steve
Solved! Go to Solution.
11-19-2009 01:18 AM
11-19-2009 07:17 AM
If you want the image of the FP, you can place a picture control under the SP, use the Get Panel Image method and push the result into the picture control. When the VI will stop the SP will become transparent and you will see the picture control.
I assume, though, what you actually want is for the FP itself to stay in the SP and I believe the answer is no. My experience has been that the caller removes the SP VI when it stops, whether you removed it or not, and a quick test indicates you can't insert a VI into an SP which isn't running. Personally, I never needed the SP to have a VI when the caller stopped.
One workaround you might be able to use is to place the SP in an XControl. Xcontrols run at edit time as well, so I'm guessing this will work, but I haven't tried it.
11-19-2009 01:13 PM
Those are interesting 'work around' methods.
Mainly I was desiring the feature so that I could manually resize a transparent frameless subpanel quickly after modifying the GUI shown in the subpanel. I think I'll invest some time in doing it programatically.
Gracias.