PJM_labview Posted May 18, 2008 Report Share Posted May 18, 2008 Run the attached VI and see how creating the right click menu (in the "Pane": Shortcut Menu Activation frame) fires a "Pane": Mouse Leave Event. This is an incorrect behavior. Expected (Correct) behavior: no mouse leave event fire. Similarly, selecting the right click menu and moving the mouse one pixel does generate a "Pane": mouse enter event. This is an incorrect behavior. Expected (Correct) behavior: no mouse enter event fire. LV 8.5 Note: This bug is present as far back as LV 8.21 (I did not check any further). This has been reported to NI Quote Link to comment
Michael Aivaliotis Posted May 18, 2008 Report Share Posted May 18, 2008 Not sure why but can't download your attachment. Please upload again (using a simpler name). Quote Link to comment
PJM_labview Posted May 19, 2008 Author Report Share Posted May 19, 2008 QUOTE (Yen @ May 17 2008, 12:40 PM) Is this like http://forums.lavag.org/Rings-and-Enums-causes-VI-Mouse-Leave-event-t8748.html&pid=33648' target="_blank">this? This would appear to be the case. PJM Quote Link to comment
Aristos Queue Posted May 20, 2008 Report Share Posted May 20, 2008 This is correct behavior, not a bug. Read here: http://forums.lavag.org/Rings-and-Enums-ca...l&pid=33648 Quote Link to comment
PJM_labview Posted May 20, 2008 Author Report Share Posted May 20, 2008 QUOTE (Aristos Queue @ May 19 2008, 09:51 AM) This is correct behavior, not a bug.Read here: http://forums.lavag.org/Rings-and-Enums-ca...l&pid=33648 I understand, now that I have seen this thread, that this is the intended behavior. Still, in my opinion, the behavior is unexpected. The help window (see screen shot below) specify: "Mouse Leave: Generated when the cursor leaves the bounds of the front panel". http://lavag.org/old_files/monthly_05_2008/post-121-1211234807.png' target="_blank"> This is pretty straighteforward text. So to have a mouse leave event fire when at no point in time the cursor left the panel bounds is incorrect. I understand that implementation wize this context menu is in another window, but as a LV programmer I have no concept (and no control) about this. The only thing I know is that LV fire a mouse leave event while my mouse pointer remains in the panel. intvsteve says in the other thread "One could, for example, fashion a custom 'popup' VI to be invoked on clicking a control that, to the user, looks and behaves exactly the same as a popup menu. From the perspective of the OS events, these are also indistinguishable. Obviously, in the case of the popup VI, you would, as the implementor, expect the mouse leave to happen, since the mouse entered another VI window (the popup VI)." I agree with this, but the critical information in this example is that I am the implementer of this extra popup window and I expect this since I know I am creating this popup in another window. In the current situation where I am using the LV native popup menu, this is totally unexpected. Since, apparently, this behavior is there to stay, the help should be updated to reflect theses exceptions. PJM Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.