From 11:00 PM CDT Friday, May 10 – 02:30 PM CDT Saturday, May 11 (04:00 AM UTC – 07:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
i propose to add a "Key Focus" event for each control. We already have Mouse events (leaving, entering) - but when the user (or the programmer) prefers the keyboard (with proper tabbing setup) you have to poll each interesting control for it's "Key Focus" property to initiate a user event...
So please:
Add a "Got Focus" (and additionally a "Lost Focus") event to the event structure!
Best regards, GerdW
using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
If we do this, please make sure that the data portion of "Got Focus" includes information about what control had it previously so that you can tell whether the user hit TAB or shift+TAB in case you're trying to forward the focus along (say a cluster forwarding to its contents).
There are lots of events that should be added. Events in LabVIEW are pretty limited compared to something like Windows Forms.
Some others: Ring or enum dropdown or collapse (before and after), panel loaded, panel visible, minimized, tree node before expand, after expand... I am sure I could come up with more.
Yes! The got/lost focus events are definitively the ones I am missing most!
Not having them leads to very unelegant code, in which I have to check the KeyFocus property of a large list of controls every few milliseconds.
Maybe we could also have an event "Panel:Focus Change"?
This would be triggered whenever any focus change on a panel occures (and of course it should contain control references to the controls that just lost and got the focus).