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

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Move Control Keys and Clicks.

Is there a way to change the key and mouse combinations used to move
controls with the "movectrl.fp" functions?
--
Regards,

John Cameron.
Type softly, read gently.
0 Kudos
Message 1 of 3
(2,629 Views)
DynamicCtrlCallback in ...\CVI\toolslib\custctrl\movectrl.c uses GetMouseKeyState to check for the Control key, then looks for EVENT_LEFT_CLICK or EVENT_RIGHT_CLICK. You can modify the DynamicCtrlCallback function in movectrl.c to look for other keys or to act on other events.
0 Kudos
Message 2 of 3
(2,618 Views)
In message <183973@exchange.ni.com>, Al S <x@no.email> writes
>DynamicCtrlCallback in ...\CVI\toolslib\custctrl\movectrl.c uses
>GetMouseKeyState to check for the Control key, then looks for
>EVENT_LEFT_CLICK or EVENT_RIGHT_CLICK. You can modify the
>DynamicCtrlCallback function in movectrl.c to look for other keys or to
>act on other events.

Thanks, just what I wanted.
--
Regards,

John Cameron.
Type softly, read gently.
0 Kudos
Message 3 of 3
(2,614 Views)