edvin
11/15/2016, 2:16 PMedvin
11/15/2016, 2:17 PMOptional arguments for openInternalWindow()▾
ron
11/15/2016, 5:54 PMmodal
mikehearn
11/15/2016, 6:34 PMedvin
11/15/2016, 7:32 PMmodal = false
they are not. I'll illustrate the difference, hang on.edvin
11/15/2016, 7:38 PMedvin
11/15/2016, 7:42 PMedvin
11/15/2016, 7:48 PMedvin
11/15/2016, 7:48 PMedvin
11/15/2016, 7:51 PMowner = this
, but I felt it was best to make it clear that this
means the button, that's why I wrote owner = this@button
. This last snippet also shows an important feature. Even though I open the window over a specific Node, it can still be dragged outside. If people care about this, we can add an option to restrict the window to the bounds of the owner Node.mikehearn
11/15/2016, 8:05 PMmikehearn
11/15/2016, 8:05 PMthomasnield
11/15/2016, 9:30 PMthomasnield
11/15/2016, 9:31 PMFieldset
cannot be cast to a Form
jchildress
11/15/2016, 9:33 PMForm
before but I usually do something like the following:jchildress
11/15/2016, 9:34 PM.apply{
before...thomasnield
11/15/2016, 9:35 PMthomasnield
11/15/2016, 9:35 PMthomasnield
11/15/2016, 9:35 PMapply()
is basically an improvised builderthomasnield
11/15/2016, 9:37 PMthomasnield
11/15/2016, 9:46 PMedvin
11/15/2016, 10:17 PMedvin
11/15/2016, 10:18 PMthomasnield
11/15/2016, 10:18 PMedvin
11/15/2016, 10:19 PMthomasnield
11/15/2016, 10:50 PMedvin
11/16/2016, 11:09 AMField().apply { ..}
manually like this, and the parent is not a fieldset. Then you might trigger the val fieldset: Fieldset get() = parent as Fieldset
property of the Field
. If you use the builders however, that can really never happen, since the builder for field
is a function inside Fieldset
.edvin
11/16/2016, 11:11 AM