LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Structure _ Hover over a contol

Solved!
Go to solution

@vidyaravanaiah wrote:

I have Event structure and a case structure inside the while loop. 

Once the mouse enter is detected, I want the associated case structure in loop to run until mouse leave event is detected.

Once the mouse leave is detected the loop should stop.

I am not able to get this working as event structure is waiting for an event to occur in the second run of while loop even though thr mouse is still on the control.

 


Your description is not sufficient, so please show us your code so we can give a specific answer. So you have an event structure and a case structure and a while loop. Where is the case structure located relative to the other structures? Do you have more than one while loop? Do you want it to always run, but switch to a different case on mouse-over?

 

Simplest would be to place the hover code inside the timeout event and switch the timeout from infinite to finite and back during the hover. No case structure needed.

 

0 Kudos
Message 11 of 12
(323 Views)
Solution
Accepted by topic author vidyaravanaiah

@altenbach wrote:
Simplest would be to place the hover code inside the timeout event and switch the timeout from infinite to finite and back during the hover. No case structure needed.

Here's an example for that.

 

HoverCode.png

0 Kudos
Message 12 of 12
(315 Views)