Max
Constructor
Max <id> (double left, double right)
Action
On each change of value, compares left and right and puts the higher value in result.Predefined children
- DoubleProperty:
left
,right
,result
.
Example
use core
use base
use display
use gui
_main_
Component root {
Frame f ("myFrame", 0, 0, 500, 500)
Exit ex (0, 1)
f.close -> ex
FillColor _ (0, 0, 0)
Text t (50, 50, "myText")
Max max_x (100, 100)
f.move.x => max_x.left
max_x.result => t.x
}