LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

New numeric control

Hi, I'm using CVI 7.1 on Win XP pro. Ihave defined a new numeric control by using the NewCtrl() function.
I have defined it's type to HOT or VALIDATE, but the value can not be edited. I can only increment/decrement the value. What should I do, please help.
0 Kudos
Message 1 of 7
(3,940 Views)
Hi,

It should not be a problem. I performed the same operation on a CVI 7.1 with Win XP Pro. and was able to get the desired result.
You can check for the set control type with:
GetCtrlAttribute (panel, ctrl_id, ATTR_CTRL_MODE, &value);
after you create the numeric control. Default is value == 1 (which is for type: HOT)

Dwivedi
0 Kudos
Message 2 of 7
(3,925 Views)
The problem appears only on panels that are part of TabControl created from Canvas.
The control is in HOT mode and its value can be incremented/decremented, but not edited.
Please suggest any solution.
0 Kudos
Message 3 of 7
(3,905 Views)
Hello shimonir,

Would it be possible for you to post example code demonstrating the incorrect behavior?

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 7
(3,886 Views)
Hello again,

Actually, I just found your code posted on another thread.

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 5 of 7
(3,879 Views)
Look here here for my observations and sample program.
It appears that controls created by NewCtrl have a problem getting the focus.
0 Kudos
Message 6 of 7
(3,873 Views)
I just posted a sample program here (NewCtrl2.zip) with a work-around: use SetActivePanel and SetActiveCtrl to force focus to the new control.
0 Kudos
Message 7 of 7
(3,862 Views)