LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

gui update for xp slower ?

a process is periodically updating a GUI.
with WinNT it works fine, with WinXP sometimes the update is delayed or not visible.
is something changed concerning the priority of GUI-update from NT to XP ?

br
cvifan1
0 Kudos
Message 1 of 3
(2,931 Views)
Don't know anything about XP (never used it) but I will suggest that you
have ProcessDrawEvents() call in your code after you update the GUI.
This way your are forcing the update to happen righ a way.


vishi

cvifan1 wrote:
> a process is periodically updating a GUI.
> with WinNT it works fine, with WinXP sometimes the update is delayed
> or not visible.
> is something changed concerning the priority of GUI-update from NT to
> XP ?
>
> br
> cvifan1
0 Kudos
Message 2 of 3
(2,931 Views)
Hi,

What do you mean by "A process is periodically updating a GUI"? if you have a call to RunUserInterface() and the callback take a decent amount of time updating the UI should be transparent. However Vishi's idea is the best to ensure that the UI gets properly updated.

As far as I know there were no changes to the thread priority in WinXP. However you can create your own thread and assign it a higher priority to ensure the updates, but I don't feel this should be necessary unless the CALLBACKS take a long time.

I hope this helps a bit, let me know if you have further questions.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 3 of 3
(2,931 Views)