キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/7
4,145件の閲覧回数
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 件の賞賛
メッセージ2/7
4,130件の閲覧回数
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 件の賞賛
メッセージ3/7
4,110件の閲覧回数
Hello shimonir,

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

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 件の賞賛
メッセージ4/7
4,091件の閲覧回数
Hello again,

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

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 件の賞賛
メッセージ5/7
4,084件の閲覧回数
Look here here for my observations and sample program.
It appears that controls created by NewCtrl have a problem getting the focus.
0 件の賞賛
メッセージ6/7
4,078件の閲覧回数
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 件の賞賛
メッセージ7/7
4,067件の閲覧回数