Home > def > deferedevent 
 fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
deferred event
A deferred 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.