LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Symbols embedded in control

Solved!
Go to solution

Hi,

I've known for a while that Tree and MC Listbox controls can embed the custom symbols that I set through the Set To Custom Symbol Array method inside the VIs that contains them. After compiling, the executable can skip that method and still remember the custom symbols. So I guess my exe has to be bigger because it contains the png files I use for every single Tree and MC Listbox control.

 

However, I only "noticed" that and don't fully understand it. Anybody here knowledgeable about this topic? I wonder if it would be better practice to ensure the exe doesn't need to store the png inside itself, and place the actual png next to the exe so it can load the custom symbols at run time.

 

Thanks

0 Kudos
Message 1 of 2
(2,245 Views)
Solution
Accepted by topic author Manudelavega

Those images are properties and properties are stored in the control.

 

That can be desirable or not. It depends on whether you want it or not:).

 

Usually it's not worth worrying about a few kb. If it is a problem in your situation, make the application clear the symbols when it stops (not entirely safe since you can stop the code before it does the clear). Or make a pre-build action that finds all the tree\mclb controls and clear the symbols.

0 Kudos
Message 2 of 2
(2,198 Views)