Exit

Constructor

Exit <id> (<0|1>, <0|1>) The first parameter is the exit value, the second one specifies wether or not the component must be activated on tree traversal, that is when its parent is activated.

Action

Quit the application.

Predefined children

None.

Example


use core
use base
use display
use gui

_main_
Component root {
  Frame f ("myFrame", 0, 0, 500, 500)
  Rectangle r1 (0, 0, 100, 70, 0, 0)
  Exit exit (0, 1)
  r1.press -> exit
}