LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set keyboard focus for a string control

Hi,

i search for a way to solve th e following problem described in the
subject. My first idea was to use a property node and selected KeyFocus.
But when i run the vi i get an ugly black box around the control.

How can i avoid this?

bye
Henrik
0 Kudos
Message 1 of 3
(3,144 Views)
Henrik,

That is eactly how it is done. The black box you are talking about (the outline
of the control is darker than usual) is the program showing you which control
has focus.

A different way to do this is create a string control (right click on it
and select 'update while typing') and a string indicator. Give the control
focus . Hide the control off screen on the front panel. Wire the control
to the indicator (which should be located where you originally wanted the
control). As the user types, the indicator will update, looking like the
user is actually typing in that box. It will not have focus so it wont have
that ugly black box you speak of.

I hope this helps,
Jared

Henrik Skupin wrote:
>Hi,>>i search for a way to solve th e foll
owing problem described in the>subject.
My first idea was to use a property node and selected KeyFocus.>But when
i run the vi i get an ugly black box around the control. >>How can i avoid
this?>>bye>Henrik
Message 2 of 3
(3,144 Views)
You may also use some special vi's that capture keyboard events. Use the events
to manipulate your button. Go to zone.ni.com and search for keyboard utilities.
They are very easy to use. I have developed several applications using them.
Henrik Skupin wrote:
>Hi,>>i search for a way to solve th e following problem described in the>subject.
My first idea was to use a property node and selected KeyFocus.>But when
i run the vi i get an ugly black box around the control. >>How can i avoid
this?>>bye>Henrik
0 Kudos
Message 3 of 3
(3,144 Views)