Divider

Constructor

Divider <id> (double left, double right)

Or, within an expression:

<process_id|number> / <process_id|number>

Action

Divides left value by right value 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)
  f.width / 3 => r1.width
  f.height / 2 => r1.height
}

run root
run syshook