02-09-2006 08:20 AM
02-10-2006 04:39 AM
Wim, the behaviour of almost all custom controls in the programmer's toolbox is to chain a new callback to the customized control and the movable control instrument makes no difference. The chained callback is executed BEFORE standard control callback so that it intercepts control events and can decide wether to pass those events to the original control callback or not: in case of this instrument, the Ctrl+Left click event is swallowed by the chained callback so that it is not passed over to the original control callback.
I'm afraid you have no way of intercepting this event other that modifying the instrument (which is distributed together with its source so it can be modified according to your needs: the callback chained to the control is DynamicCtrlCallback located in <cvidir>\toolslib\custctrl\movectrl.c.
I wrote those lines looking at CVI 7.1 instrument: I have not installed cvi8 on my machine yet; anyway you can check to see if the instrument structure has changed in the last version of CVI.
02-10-2006 05:00 AM