LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set Busy cursor doesn't change until mouse is moved

Hello,

When I use the "Set Busy.vi" to control mouse cursor appearance, it doesn't actually change until the pointer is moved. Similarly, the "Unset Busy.vi" doesn't change appearance until the mouse is moved. Is there a way to fix this?

Thanks,

-Dave
0 Kudos
Message 1 of 3
(3,181 Views)
Hi Dave,

I've tried this and it seems to work okay for me... do you have any example code you can post? Which version of LabView are you using?

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 2 of 3
(3,175 Views)
I am using LV 7.1.

I discovered the problem. I have an application that uses a non-modal window "B" that starts up beside the first window "A" (B runs in parallel). I set my busy cursor in A and wait for the window B to finish loading (plus some other time-consuming initializations) and then I unset the busy cursor. The problem is that B gets the focus when it starts, while the mouse cursor is sitting idle over A. When I move the mouse, it notices that it's over window A where the "busy" was called, and changes to busy even though window A still does not have focus. Interesting!

To fix this, I just used the VI property "IsFrontMost" in A (after B starts loading). Problem solved.

-Dave
Message 3 of 3
(3,149 Views)