LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

[CWGRAPH 3D] disable user events

Hello,

I would like to disabled events from the ActiveX.
I use the CW3DGraphLib__DCWGraph3DSetEnabled function to enable/disable
the events but if this property is previously set to VTRUE, the graph still
generates events and the CallBack functions are called.

I also try to set the CallBack Function pointers to NULL and the «enable
callback» parameters to 0, but it doesn't work either.

How to lock this activeX control ?
0 Kudos
Message 1 of 4
(2,843 Views)
I tried the same thing using CVI 6.0, and setting DCWGraph3DSetEnabled() to VFALSE does seem to work. Did you register the callbacks correctly? I attached the project I tried. When the program loads up, click the OK button to register the click event. When you click on the control, you should see a message box pop up. Then Click the disable button on the UI, and now, if you click on the graph control, there should be no messgae box

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 4
(2,843 Views)
[Xpost & FU2 natinst.public.componentworks.general]

Hello,

bilalD wrote

> I tried the same thing using CVI 6.0, and setting
> DCWGraph3DSetEnabled() to VFALSE does seem to work.

I tried the project you attached and the «Disable» button doesn't work.
I see the message box on every click once the graph is set to 'enabled'.

I also get the following error message when the program is loaded up :

«
Aborted load of "....cw3dgraph.obj", the file format does not match that
used by the current compatibility mode.
»

What is the .obj file used to ?

thus I load the cw3dgraph version that i usually use.


Plateform :
- Windows XP
- CVI 6.0
- CW3Dgraph 6.0 ( TypeLibVersion="1.6" read from .sub file)


--
MC2.
0 Kudos
Message 3 of 4
(2,843 Views)
MC2,

can you please tell me if the enabled property finally is working good with a NI CWGraph? How did you totally disable events in that control?

Thanks
Cris
0 Kudos
Message 4 of 4
(2,843 Views)