取消
显示结果 
搜索替代 
您的意思是: 

Find Focus from TypeDefs?

已解决!
转到解答

Hi,

 

in my application I have a function that find the control which has currently the focus (to get some properties of this control afterwards). A simplified copy of this function I attached below.

 

My question: Why doesn't the method works when control is a typedef?

 

Kind regards

 

Christian

Christian

Test Engineering
digades GmbH
www.digades.com
下载全部
0 项奖励
1 条消息(共 5 条)
3,606 次查看
解答
接受人 C.D.

CD,


Looking at the help page of that particular method, it appears that it is not available with strict type definitions.

 

http://zone.ni.com/reference/en-XX/help/371361L-01/lvprop/vi_find_control_with_key_focus/

 

Interestingly, I was not able to get the key focus to work for either enum.  I'm using LabVIEW 2014 but I would be interested in knowing what version of LabVIEW you were using so I can try this out tomorrow when I have access to more versions.

Matt J | National Instruments | CLA
0 项奖励
2 条消息(共 5 条)
3,575 次查看

Hi Matt,

 

thank you for your response. I think my only chance is to release the concerning controls from its TypeDefs.

 

By the way - it doesn't works neither with TypeDef nor with StriktTypeDef (I use the German version of LabVIEW 2013, hope you can interpret my translated designations).

 

You can set key focus to enum controls only by operate Tab-key on keyboard. You can't set it directly by mouse click.

 

Kind regards

 

Christian

Christian

Test Engineering
digades GmbH
www.digades.com
0 项奖励
3 条消息(共 5 条)
3,557 次查看

@C.D. wrote:

 

You can set key focus to enum controls only by operate Tab-key on keyboard. You can't set it directly by mouse click.

 

Christian


Okay, I see what you were seeing now.

Matt J | National Instruments | CLA
0 项奖励
4 条消息(共 5 条)
3,543 次查看

Hey everyone,

 

In LabVIEW 2015, support was added to the FindCrtlWithKeyFocus invoke node for typedefs. 

5 条消息(共 5 条)
3,393 次查看