06-27-2005 06:58 PM
06-27-2005 08:10 PM
07-26-2007 11:02 AM
08-07-2007 05:26 AM - edited 08-07-2007 05:26 AM
I'm not the only one with this problem then. I just found this thread after spending several days tearing my hair out. The keyboard focus is not switching from the embedded ActiveX control to the VI when the user clicks on the VI panel itself.
I've attached a simple VI that illustrates the problem. In my case I'm using the Adobe (Acrobat) Reader ActiveX control. Clearly the problem is at the LabVIEW end, as we're all using different ActiveX controls. Adobe Reader is required to run this VI. I'm using Adobe Reader 8.1.0 and LabVIEW 8.20.
The VI saves a small PDF file in your temp directory, then gets the Adobe Viewer to display it. The PDF file is deleted on exit.
To illustrate the problem, try this:
I've found that if I press F1 after clicking on the VI or operate the boolean control with the mouse then the focus does correctly switch back to the VI. I can then type numbers into the control following this. However, after I've clicked anywhere on the ActiveX control I can click as much as I like on the VI panel or the numeric control and the focus will not switch to the VI's numeric control.
I believe that the fault is that the keyboard focus does not leave the ActiveX control until a LabVIEW boolean control is operated. This means my application doesn't work properly.
I will submit a fault report for this, but any clever workaround would be very much appreciated. I'm going to have a play with some of the events, e.g. mouse over the numeric and see if I can come up with anything. I will report back if I get anywhere.
Message Edited by Sean on 08-07-2007 11:27 AM
Message Edited by Sean on 08-07-2007 11:29 AM
08-07-2007 05:54 AM
08-07-2007 08:41 AM
Fault logged with NI UK.
08-07-2007 08:46 AM
Just a thought - if anyone reading this has LabVIEW 8.5 it would be very useful to know whether this bug is still there.
I can't even download an evaluation version of it yet. I think it's only been launched today.
08-08-2007 09:21 AM - edited 08-08-2007 09:21 AM
Message Edited by Sean on 08-08-2007 03:22 PM
08-09-2007 04:10 AM
08-09-2007 05:26 PM