LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ListBox replace question

I have been working on an application that I started in my early days of labview SO needless to say my style is quite awful in this particular app :) My problem is that I have a couple listboxes that are side by side and set to the same hieght BUT the text size is different between the two. I have tried tweaking the font size via the font properties on the menu bar but it still does not look right. I also tried right click replace, but that does not help, the fonts still are different sizes. The sizes are off just a little, one lb will show 12 row and the other shows 13 row even though the hieght are the same I know I can select the active cell and set the font but I was hoping not to have to do that. The other problem is that there a numerous listbox property nodes spread thoughout the application, is the a way to place a new lb on the front panel and somehow use it in place of an existing listbox without manually going through the app and replacing all the property nodes? I am using LV 8.5 proffesional dev Thanks Tim C.
1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 1 of 4
(2,556 Views)

If you select the two listboxes and change the fonts they will all change.

 Also check the "Autosize Row Height".

 

For the second question, right click the control >> select replace >> and select a new listbox.

 

0 Kudos
Message 2 of 4
(2,550 Views)

You can also do this:

Select the source listbox.

Select Edit->Copy.

Select the target listbox.

Select Edit->Paste.

This should effectively replace the second listbox with a copy of the first. However, if the font stuff is being set with property nodes, then this will have no effect. Keep in mind that you can search for all property nodes for a control. Right-click on the control and select Find->Property Nodes. You can then use Ctrl-G to go from node to node.

0 Kudos
Message 3 of 4
(2,545 Views)
Thanks,
1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 4 of 4
(2,541 Views)