shred444 Posted October 26, 2008 Report Share Posted October 26, 2008 Hey guys, I have a function that reverts all the cells in a multi column listbox back to white. It consists of two for loops (one for each row, one for each column) psuedo code: For each rowFor each ColumnSet this row,column as active cellchange the background color of this active cell to whiteend loopend loop I understand that redrawing the screen is processor intensive, so i defer panel updates. The problem is, this function is still taking several seconds to complete. For a 1024 row listbox with 5 rows, it takes 3 to 5 seconds. Is there something I'm forgetting? Quote Link to comment
Francois Normandin Posted October 26, 2008 Report Share Posted October 26, 2008 You can set all rows and all columns at once. Quote Link to comment
Neville D Posted October 28, 2008 Report Share Posted October 28, 2008 Do you have to change the colors everytime? If you do it once during development mode, and save the VI, it remembers those colors. N. Quote Link to comment
shred444 Posted October 28, 2008 Author Report Share Posted October 28, 2008 QUOTE (normandinf @ Oct 25 2008, 04:09 PM) You can set all rows and all columns at once. http://lavag.org/old_files/monthly_10_2008/post-10515-1224968928.png' target="_blank"> -2,-2 worked perfectly. Thank you Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.