LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot see the flickering cursor in the string input frame

Hello,

 

When using the SetActiveCtrl() to active a string control, I can not find any cursor focus on it. How to make it getting focus and waiting an input programmable? By the way,

my panel is a modal window.

 

 

David

0 Kudos
Message 1 of 4
(3,391 Views)

Are panel handle and control callback correct values? Does the string control lie on the modal window?

Better again: does SetActiveCtrl return an error code?



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,389 Views)

Hi Roberto,

 

I have checked the code, it has not any problem, the panel is not a modal . this panel just called in a dll. CVI version is 2009, OS is Windows 7 64-bit. SetActiveCtrl() returns 0.

 

 

David

0 Kudos
Message 3 of 4
(3,364 Views)

David:

 

After you execute SetActiveCtrl(), have you tried typing anything to see if it goes where you exepct it to?  Don't click with the mouse, just start typing.

 

Have you put a breakpoint on SetActiveCtrl() to verify that the code is being executed?

 

Is SetActiveCtrl() in a callback that doesn't return?  Unless you call ProcessSystemEvents(), your code won't respond to UI activity untill you return from a callback.

 

Is the Control Mode of your string control Hot?

 

In SetActiveCtrl(), do you explicitly use the numeric values (e.g. 1, 2, 3), or do you use the variable names and constant names (e.g. panelHandle, PANEL_STRING)?

0 Kudos
Message 4 of 4
(3,315 Views)