07-27-2012 12:23 PM
@Steve Chandler wrote:
Norbert, neat trick! I had never thought of a use for a disabled control that is not also greyed out. I never tried it but I am surprised that a disabled control still generates mouse events.
Mouse down events are independent of the operation. You can easily generate such events even for indicators. Very useful! 🙂
07-27-2012 01:35 PM
Norbert: Thank you for sending this VI. It is exactly what I was looking for.
07-27-2012 03:40 PM
@Norbert_B wrote:
@Ian: While i find the general idea very interesting, i don't like that timing is encapsulated only in the subVI. While it doesn't hog the CPU (which is good), it might give wrong impressions to new developers (no obvious wait funktion in the loop).
@Op: If it was only a double click you want to check, you might do something like in the attachment.
Norbert
I to am interested in your solution. Can you downconvert to LV10 for me? Thanks.
07-27-2012 04:00 PM
Reese, Here it is in LV2010.
07-27-2012 05:19 PM
Norbert_B wrote:@OP: If it was only a double click you want to check, you might do something like in the attachment.
I am still trying to wrap my head around the diffence between a "mouse down ...double-click" and a "mouse up...double-click" event. 😄
07-28-2012 11:27 AM
@altenbach wrote:
Norbert_B wrote:@Op: If it was only a double click you want to check, you might do something like in the attachment.
I am still trying to wrap my head around the diffence between a "mouse down ...double-click" and a "mouse up...double-click" event. 😄
@Norbert_B : Very cool idea indeed.
@altenbach: I was trying to find out the same soon as I saw the code. I do not see any differece in terms of execution, is it true?
Also, I think as a general principle, everyone in the forums should post vi in older version whenever possible (of course, in some times you might loose some functionality, in which case, it should be okay to post it in same version it was created in). It willl help the majority of community members who have older version to jump in to the discussion, and get the ideas such as few posted in this thread, whithout having to go through the hassle of asking for downconversion and wait for it until someone does it for them.
-Nilesh
07-30-2012 02:29 AM - edited 07-30-2012 02:29 AM
The difference between mouse down and mouse up is WHEN the event is generated. Mouse down means, the event is generated as soon as the mouse button is pressed while mouse up is generated once you release the button.
For single mouse presses, it is suggested to use the mouse up event because you might realize: Hey, that's the wrong control i am pressing! So simply move (while keeping the mouse button pressed) the mouse point off the control and then release the button. The event for the control "mouse up" will not be generated since it never took place (mouse up was OUTSIDE the control!)
Another difference is that mouse down is also available as filter event while mouse up not....
A third difference is that mouse up is not generated if the control has a context menu and the mouse button used is the right one.
But to be honest, for a double click, it really doesn't matter much since if i double click as user, i click quite fast (maybe as fast as i can) so i will not rethink during the double click if the control was the correct one.... 😉
hope this helps,
Norbert
07-30-2012 07:32 AM - edited 07-30-2012 07:34 AM
@odessy27 wrote:
Also, I think as a general principle, everyone in the forums should post vi in older version whenever possible (of course, in some times you might loose some functionality, in which case, it should be okay to post it in same version it was created in). It willl help the majority of community members who have older version to jump in to the discussion, and get the ideas such as few posted in this thread, whithout having to go through the hassle of asking for downconversion and wait for it until someone does it for them.
-Nilesh
I second this notion. I've had to ask for older versions all the time. Unfortunately, some of us are stuck with the versions we purchased until we can convince the powers-that-be of the need to upgrade.
07-30-2012 09:17 AM
@MoReese wrote:
I second this notion. I've had to ask for older versions all the time. Unfortunately, some of us are stuck with the versions we purchased until we can convince the powers-that-be of the need to upgrade.
I just posted an idea to the idea exchange that might be able to address this issue.
08-15-2012 03:55 PM
@Steve Chandler wrote:
@MoReese wrote:I second this notion. I've had to ask for older versions all the time. Unfortunately, some of us are stuck with the versions we purchased until we can convince the powers-that-be of the need to upgrade.
I just posted an idea to the idea exchange that might be able to address this issue.
I already posted here long back when I was starting with the forum (You know one thing I got my first kudo there ) but not much appreciation 😞