question

Lin Ray avatar image
0 Likes"
Lin Ray asked Jason Lightfoot commented

How to use "OnKillFocus" Attribute

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.
FlexSim 20.2.3
onkillfocus attribute
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

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 0 ·

1 Answer

·
Jason Lightfoot avatar image
2 Likes"
Jason Lightfoot answered Jason Lightfoot commented

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


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

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 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.