Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 2 out of 5     Rate this Document

Double Click Events Versus StateChanged Events with Measurement Studio Controls

Primary Software: Measurement Studio>>.NET Support
Primary Software Version: 8.1.1
Primary Software Fixed Version: N/A
Secondary Software: Measurement Studio>>.NET Support

Problem:
Why do some Measurement Studio controls such as the LED fire two StateChanged events but only one Click event when I double click them?

Solution:
Measurement Studio controls such as the LED can have several behavior types compared to normal .NET controls like the Button. For instance, if an LED in Control mode is set to to SwitchWhenPressed, the control will change state twice for every double click since each click in the mouse gesture is regarded as an individual press event. Conversely, the LED will register one click event for each set of clicks together in a double click gesture. This is expected behavior as evidenced by the attached example program.

Related Links:

Attachments:
Events.exe




Report Date: 08/23/2007
Last Updated: 08/25/2007
Document ID: 4CM90DSN

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit