07-31-2012 09:45 AM
How can I programmatically insert a new row into a Multicolumn Listbox? Is there a way to access the function that is executed when I right-click on a Multicolumn Listbox and select 'Insert Row Before'? This function keeps the cell formating (Font Color, etc) in sync after inserting the new row.
I have implemented this using the 'Item Names' and 'CellFontColor' property nodes, but this takes way too long when manipulating a ~80 rows x ~80 columns Multicolumn Listbox. Right-Clicking and selecting 'Insert Row Before' is instantaneous.
Thanks,
Chris
Solved! Go to Solution.
07-31-2012 09:47 AM - edited 07-31-2012 09:48 AM
07-31-2012 10:12 AM
Just to add to what GerdW already stated. Set the DeferPanelUpdate to TRUE, manipulate the listbox, and then set it to FALSE. What this does is it tells the user interface thread to not draw updates to the front panel while you are making a lot of changes. This will speed up operations, sometimes quite considerably.
07-31-2012 11:25 AM
GerdW,
Thanks for the tip. Inserting a new row and keeping the existing cell formatting in sync is now instaneous after using the DeferPanelUpdate property.
It still would be nice, and a lot easier, if LabVIEW provided access to the Right-Click Insert Row method.