09-12-2008 01:26 PM
Hello,
I have an application where I have a waveform chart (LV7.0) and a string variable on the same screen. Since, in this application, a user inputs data into the string with a bar code reader, and since that can happen at any time, I constantly give the string control key focus. This is done within a loop. The problem is, I want to be able to double click the y-axis scaling on the chart and modify it at runtime, effectively zooming in or out on the chart. Ideally, during modification of the chart, the chart would have key focus, and I'd set keyf ocus on the string control to be the inverstion of the key focus of the chart... but that doesn't work. Does anyone know how to do what I'm trying to accomplish?
Thanks.
09-12-2008 01:47 PM
Hi rickford66,
i think you can use an event structure for it. Set the key focus of your control in the timeout case. You can change the timeout depending on the user events. Another solution could be to use the key down event of the VI to read the barcode.
Hope it helps.
Mike
09-12-2008 01:57 PM
Yeah, I thought of that a little while ago, and just finished coding it. It works pretty good, but it gives a time limit. Not exactly what I wanted, but I think I'll be able to get by with it. Thanks.