LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using CWKnob activeX control

Why can't I select a 3D style in the "Style" Tab of the property sheet of the CWKnob control?
0 Kudos
Message 1 of 5
(3,531 Views)
I'm not having this problem. Im using version 7.1 of the CWKnob control with CVI 7.1. Are you getting an error message what you select the 3D styles?
Bilal Durrani
NI
0 Kudos
Message 2 of 5
(3,522 Views)
Well, i'm going to describe more precisely what i'm doing :
I add the ActiveX control CWKnob directly in a panel. By default, "3D Knob" style is selected. When I click (in the "Style" Tab), for example, on the next one ("3D dial" style), nothing happens. This behaviour happens when I want to select any "3D style" but not when I want to select a "classic style". No error message is displayed.
I've also tried to change the style of the control, at the beginning of my program, by the following sequence :
StatusI = GetObjHandleFromActiveXCtrl (panelHandle, PANEL_CWKNOB, &KnobH);
StatusI = CWUIControlsLib__DCWKnobSetBuiltinStyle (KnobH, NULL, CWUIControlsLibConst_cwKnobStyle3DDial);
CA_DiscardObjHandle (KnobH);
and i've always the message "can't access item" in the ERRORINFO structure.
0 Kudos
Message 3 of 5
(3,521 Views)
What is the version of CWKnob you are using? And which version of Measurement Studio do you have installed?
Is there a reason why you are not using the native CVI knob control? It's probably alot easier to use in CVI than the activex control.
This might occur if you have a current version of the activex control install but an older license. If you have a only version of the license, it locks down certain features that were made available in versions after that. I believe 3D styles were not available in some of the older versions (3.0) of the CW user interface controls. You should not have this problem if you have a newer version of Measurement Studio.

If you have Measurement Studio 7.x installed and you are still having this problem, try using the license fixer utility mentioned in this document
Bilal Durrani
NI
0 Kudos
Message 4 of 5
(3,506 Views)
I had to reinstall Measurement studio and now it's OK. Thanks.
0 Kudos
Message 5 of 5
(3,483 Views)