From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
|
如果您正在使用 LabWindows/CVI 8.0.1 以及更早的版本,您可以使用函数 EnableExtendedMouseEvents
,该函数允许一个控件接收除内置的鼠标事件以外的鼠标事件。这些额外的事件是 EVENT_MOUSE_MOVE、EVENT_LEFT_MOUSE_UP 以及 EVENT_RIGHT_MOUSE_UP。
注意:在 LabWindows/CVI 8.1 以及更新版本中,EnableExtendedMouseEvents
函数被认为是过时的。NI 建议您使用上面提到的内置的 LabWindows/CVI 事件而不是该函数。如果您需要用户在 LabWindows/CVI 面板以外释放鼠标左键或者右键的事件信息,您可以使用 EnableExtendedMouseEvents
。
相关链接:
Developer Zone Tutorial: Retrieving Mouse States
KnowledgeBase 0GHA3UZL: Monitoring Mouse Position in LabWindows/CVI
附件:
|