02-26-2015 01:51 AM
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
Solved! Go to Solution.
02-26-2015 11:30 PM
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.
02-27-2015 01:23 AM
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
02-27-2015 08:29 AM
@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.
08-12-2015 10:41 AM
Hey everyone,
In LabVIEW 2015, support was added to the FindCrtlWithKeyFocus invoke node for typedefs.