07-03-2018 06:45 AM - edited 07-03-2018 07:05 AM
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.
Note: Main VI And Sub VI is attached
07-03-2018 09:00 AM
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.
07-31-2018 03:38 AM
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.
07-31-2018 10:06 AM
FYI - the expected UI response is for an event to happen on a mouse click is on mouse UP.