LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with focus

Hi,
 
I've a problem with the focus: I think the solution should be quite easy, but I've been looking for it for half an hour without results
 
I want to give the focus to a string indicator, because I want to see the blinking vertical cursor. (I know I could obtain the same result clicking on the indicator, but my program must run on a PC without mouse)
 
I made a simple test program (attached), that sometimes works, but almost often it doesn't.
I used the led in the while loop, and I see that tha string indicator hasn't the focus, even if I give it before. (this program must run on linux, so I tried in on a Fedora Core 3)
 
Where is the problem?
 
Using LV 6.1 on Linux Fedora Core 3
 

Message Edited by vix on 09-27-2005 11:40 AM

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 5
(2,945 Views)

Hi vix,

To make key focus to a string CONTROL is easy and you already did it in the example. What you are asking for is key focus on string INDICATOR. and Indicator means that its not a user input. So change it to control if its meant to be a control (user input) and try running the application again.

good luck

Tareq

Message 2 of 5
(2,934 Views)

Hi vix

After doing what Tareg stated, If you want to make sure key focus stays in that string control, put the property node inside the while loop.

If it is out,  and sombody press TAB key or does something in another control/indicator, you will loose it.

Cheers
 
Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 3 of 5
(2,923 Views)

Ok, you're right fot the difference CONTROL / INDICATOR;

but the problem is that my example (with the CONTROL) only works on Windows, but doesn't on Linux (Fedora Core 3), and I want to use it on Linux

 

Using LV 6.1 on Linux Fedora Core 3

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 4 of 5
(2,915 Views)

Hi,

 

I tested the VI with LV 7.1 on Linux Mandrake 10.1 and it works exatly

the same way as it does on Windows. Here is a link to the FAQ "NI and Linux":

http://www.ni.com/linux/support.htm#2

You will find some interesting information, in particular with regard to

the currently supported Linux distributions. The error may be an issue

related to the Fedora distribution.

Bye,

 

Matteo F.

AE - NI italy

0 Kudos
Message 5 of 5
(2,896 Views)