LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Key Navigation LV8

Hi,
 
I have a program that I would like to programatically set key navigation. This is easily done with LV7 but I can not see how to do it with LV8. Any ideas?
0 Kudos
Message 1 of 9
(4,608 Views)
Hi Castechvb,

You can use the property node Toggle Key Binding.

Please see the attached example saved in LV 8.0.0 format.

If you only want to have key focus, then you can you the Focus Key Binding property node.

Regards
JamesC
NIUK and Ireland

Message Edited by JamesC on 08-29-2006 11:25 AM

Message 2 of 9
(4,581 Views)

Thank you for that. Exactly what I was looking for!!

 

Cheers

0 Kudos
Message 3 of 9
(4,575 Views)
@James: Unless there is not a button with the return-key assigned to, a newly created button on the FP gets this property set. I don't want this property to be set automatically and so I always have to open the Key Navigation properties page and delete the assignment. Is there an option to deactivate this automatism?
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 4 of 9
(4,500 Views)
Hi Becktho,

I am not entirely sure what you mean, can you provide an example?

If you want to turn off Key navigation programatically, you can "Wiring a default constant of this cluster to the Key Navigation property node for a control will effectively disable key navigation."

I am not sure this answers your question though.

Sorry for not being much help, if you can explain what you are trying to do in more detail I will see what I can find out.

Regards
JamesC
NIUK and Ireland

0 Kudos
Message 5 of 9
(4,469 Views)
I can't provide an example - you have to follow the method. This is what I do:
1. create a new vi
2. place a system button on the front panel
3. right click the button
4. select the entry properties
5. switch to the tab "Key Navigation"
 
Now there should be an existing binding "Toggle" with return as assigned key.
 
I do not want to have this binding if I place a new button. If I place a standard LV button, there is no binding.
Is this a bug, a setting or maybe something NI wanted to work like this?
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 6 of 9
(4,464 Views)
Hi Becktho,

I can replicate what you are seeing. I would say this is something the developers wanted as it only occurs on the system OK button.
It is probably a hold over from before we brought out the 3D controls.

I have been looking for an ini token to remove this feature, but can not find one.

Only the last system OK button control you place down will have this toggle, everything else should have no key navigation. It is an annoyance, but it should mean you only have to change a maximum of 2 key bindings after you have developed your application.

Regards
JamesC
NIUK and Ireland

Message 7 of 9
(4,440 Views)
Just use a system cancel button if you don't want the key binding set to enter automatically. As far as I know, this is the only difference between the 2 buttons other than the default label.
0 Kudos
Message 8 of 9
(4,438 Views)

Now that's interesting - I always wondered why there are two buttons.

Any comment from NI's side?

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 9 of 9
(4,423 Views)