LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you control when a Listbox updates the view?

I have a problem, that when I highlight a line programmatically in a multicolumn listbox (wrting to the value property) it can take quite a while before you actually see it on the screen.

I can work around it by disabling and again enabling the symbols, but as the list is quite long, this gives a noticeable delay.
Is there a better way to force a screen update?

Using Laview 6.0.2
0 Kudos
Message 1 of 4
(2,840 Views)
Have you thinked about your problem regarding in another cause? For example, if you are using windows, you should put a small delay inside every while loop, to avoid your program to get all processor time, avoiding frecuent screen updates (including listbox).
Hope this helps
Message 2 of 4
(2,840 Views)
Yes, I looked into that. Although the loops are susposed to be waiting already, I included some extra waiting time. Doesn't help.
The taskmanager shows only 1% cpu usage, so I don't think I missed something on that part.
0 Kudos
Message 3 of 4
(2,840 Views)
There was a bug in LV5.1 that corrupted the listbox display.
It was not updated until the user cliked on it.
It does not occur consistently so I don't know if it has been fixed in
6.0.2.

Try to replace the listbox control on the front panel with a new listbox.

Jean-Pierre Drolet



"Anthony de Vries" a écrit dans le message news:
506500000008000000471F0000-986697009000@quiq.com...
> I have a problem, that when I highlight a line programmatically in a
> multicolumn listbox (wrting to the value property) it can take quite
> a while before you actually see it on the screen.
>
> I can work around it by disabling and again enabling the symbols, but
> as the list is quite long, this gives a noticeable delay.
> Is there a better way to force a screen up
date?
>
> Using Laview 6.0.2


LabVIEW, C'est LabVIEW

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