Home / def / deferedevent 
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration   
fr  de  es  it  nl  pl  pt  pt_BR  ca  ar  fa  vi  ja  ru  zh  zh_TW  eo 
Documentation
History
 
defered event
A defered event is an event that is not sent immediately, but at the beginning of the next event loop.

For example, this code:

...
PUBLIC SUB MyTextBox_GotFocus()
  PRINT "GotFocus"
END

PUBLIC SUB MyButton_Click()
  MyTextBox.SetFocus
  PRINT "Click"
END
...

prints the following when you click on the button MyButton:

Click
GotFocus

The MyTextBox_GotFocus event handler is raised after the MyButton_Click has finished, when the next event loop begins.