Carlton Whitehead
07/31/2018, 11:14 AMCarlton Whitehead
07/31/2018, 11:18 AMfail
in runAsync { } success { } fail { }
to be replaced with failure
. Reason being that success
and fail
are different parts of speech. Every time I see or write those, it makes me do a double take.carlw
07/31/2018, 12:54 PMCarlton Whitehead
07/31/2018, 1:06 PM#fail
won't compile 😜nate
07/31/2018, 6:08 PMwakingrufus
07/31/2018, 7:04 PMSiebelsTim
07/31/2018, 7:23 PMtornadofx.Properties
. I usually go for import tornadofx.*
. You might want to install the intellij plugin. The plugin can autogenerate the property delegates for youwakingrufus
07/31/2018, 8:09 PMwakingrufus
07/31/2018, 8:12 PMedvin
08/01/2018, 7:06 AMedvin
08/01/2018, 7:18 AMedvin
08/01/2018, 7:18 AManidotnet
08/01/2018, 7:25 AMbutton ("Second View") {
setOnAction {
val stage = Stage()
stage.setOnShown {
println("Secondary $it")
}
val scene = Scene(SecondaryView().root)
FX.applyStylesheetsTo(scene)
stage.scene = scene
stage.show()
}
}
@edvin can we modify the openWindow
or openModal
so that we can properly subscribe to stage events?edvin
08/01/2018, 7:34 AMedvin
08/01/2018, 7:40 AMonDock
callback is created for secondary windows is actually by listening to the showing
property and then calling onDock
. Looking for alternatives.anidotnet
08/01/2018, 7:41 AMedvin
08/01/2018, 7:41 AMonDock
callback for what you want to do?anidotnet
08/01/2018, 7:45 AMedvin
08/01/2018, 7:46 AManidotnet
08/01/2018, 7:48 AManidotnet
08/01/2018, 7:49 AMedvin
08/01/2018, 7:49 AManidotnet
08/01/2018, 7:49 AMedvin
08/01/2018, 7:49 AMrunLater
, but that sucks of courseanidotnet
08/01/2018, 7:49 AMedvin
08/01/2018, 7:50 AMonDock
was always intended to be called when everything was set up. I would rather delay it for the primary view than change it for the secondary views. Maybe we can find another way to deal with your issue.anidotnet
08/01/2018, 7:51 AMedvin
08/01/2018, 7:53 AMstage.setOnShown
in the primary view, that would indicate that your code is running earlier than it does for the secondary view, wouldn't it? onShown
is already called for the secondary view when onDock
is run.anidotnet
08/01/2018, 7:54 AManidotnet
08/01/2018, 7:54 AM