Adder

Constructor

Adder <id> (double left, double right)

Or, within an expression:

<process_id|number> + <process_id|number>

Action

Adds left and right values each time one of it is updated.

Predefined children

  • DoubleProperty: left, right, result.

Example


use core
use base
use gui

_main_
Component root {
  Frame f ("myFrame", 0, 0, 500, 500)
  Rectangle r1 (0, 0, 100, 70, 0, 0)
  Rectangle r2 (0, 0, 100, 70, 0, 0)
  r1.height + r1.y + 5 => r2.y
}

run root
run syshook