08-19-2008 04:06 AM
Hi there,
I want to programmatically delete a subpanel but couldn't find any method that was doing it. Is there any way to do the task?
Thanks,
Peter
08-19-2008 04:08 AM
Hi Peter,
what do you mean with "delete"? Do you want to remove the subvi from the subpanel? You can´t delete a control from the Front Panel programmatically.
Mike
08-19-2008 05:53 AM
Instead, you can use the Visible property to hide n seek the Sub Panel on the FP.
What is your exact requirement? It ll be much more helpful to provide a better solution than this.
08-19-2008 07:26 AM
Hi MikeS81 and Partha,
thanks for your comments.
The user interface of my application is devided into three sections by three subpanels. Into these subpanels, vis are loaded dynamically depending on the selection of the user. There is one vi that cannot be run with the user interface being divided into three sections. Rather it needs the whole area of the main panel. That's why this vi should first delete (=remove) the smaller subpanels from the GUI and then add a big subpanel that is sufficient to accomodate the vi with the big panel. Do you know a more elegant solution than hiding the subpanels and having them overlap?
Thanks for any hint,
Peter
08-19-2008 07:42 AM
Frankly those two are the only things which i use.I will be really surprised to know anyother method exists.
08-19-2008 09:34 AM
Hi Peter,
you can use your three "small" subpanels and one big subpanel. If you need the big one hide the three other ones and if you need the three hide the big one.
Hope it helps.
Mike