10-07-2010 10:17 PM
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
10-07-2010 11:25 PM
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?
10-08-2010 11:06 AM
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
10-13-2010 02:06 PM - edited 10-13-2010 02:08 PM
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)?