How to use "OnKillFocus" Attribute

How to use "OnKillFocus" Attribute

lin_r2
Not applicable
80 Views
3 Replies
Message 1 of 4

How to use "OnKillFocus" Attribute

lin_r2
Not applicable

[ FlexSim 20.2.3 ]

I want to use "OnKillFocus" attribute in GUIs, but I can't find it. I try to make it by myself, but not useful. Please help me. Thank you.
0 Likes
Accepted solutions (1)
81 Views
3 Replies
Replies (3)
Message 2 of 4

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution

Attached is an example showing that OnKillFocus on an edit field can be used to set a variable as soon as you click away from the edit.


OnKillFocusExample.fsm

Message 3 of 4

Ben_WilsonADSK
Community Manager
Community Manager

Hi @Lin Ray, was jason.lightfoot's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes
Message 4 of 4

jason_lightfoot_adsk
Autodesk
Autodesk

Note - if you want to add a node then in the tree highlight the intended container node and press Enter, then press T to add text data for your code. Click the name to rename it OnKillFocus. To add a node after another, highlight the intended predecessor and press the spacebar. These nodes need to be at the primary attribute level of the view accessed by clicking ">" next to the view node in the tree.

0 Likes