LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically delete a subpanel

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

0 Kudos
Message 1 of 6
(2,635 Views)

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

Message 2 of 6
(2,633 Views)

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.

- Partha ( CLD until Oct 2024 🙂 )
Message 3 of 6
(2,613 Views)

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

 

0 Kudos
Message 4 of 6
(2,604 Views)

 


Do you know a more elegant solution than hiding the subpanels and having them overlap?

 

 

Frankly those two are the only things which i useSmiley Sad.I will be really surprised to know anyother method exists.

Message 5 of 6
(2,600 Views)

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

Message 6 of 6
(2,588 Views)