LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Subpanel pane mouse down event affecting main VI pane Mouse down event.

Hello all,

I'm using Subpanel in main VI and showing front panel of sub VI in it, I put pane mouse down events in both VIs, 

 

What I want to achieve : 

When I'm triggered the event in subpanel VI, it should not affect the Main VI.

 

2018-07-02_1630.png 

Note: Main VI And Sub VI is attached

0 Kudos
Message 1 of 4
(2,403 Views)

The VI's work from top to bottom, so the main will get the message first. Discarding the even (Mouse Down?) there will make the sub panel VI not receive it. It does not work the other way around.

 

 

You might have some luck checking the mouse down position. If you click in the subpanel, the mouse down coordinates will be in the sub panel's bounds... If it is, you can ignore the event. If not, handle the event.

 

Maybe you can explain why you want this? There might be ways to avoid it altogether.

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

Hi, I just saw your  message. Thanks for your help!

The VI's work from top to bottom it's true,If i want to discard mouse down event, SubVI first enter in mouse down event of mainVI then discard event, but whenever it enter in mouse down event of MainVI to discard event, it affects the main VI.   

 

I tried 2nd one to discard mouse down event but it still goes into MainVI.

which is not desired one.

0 Kudos
Message 3 of 4
(2,296 Views)

FYI - the expected UI response is for an event to happen on a mouse click is on mouse UP.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 4
(2,272 Views)