napperley
05/28/2019, 4:53 AMseiv
05/28/2019, 12:52 PMclass MyApp : App(MyView::class) {
override fun start(stage: Stage) {
... some custom code
}
override fun stop() {
if(db_still_up) {
notify_warn("can't exit right now")
} else {
Platform.exit()
System.exit(0)
}
}
}
napperley
05/28/2019, 10:38 PMamanda.hinchman-dominguez
05/29/2019, 4:46 AMalilosoft
05/29/2019, 8:26 AMamanda.hinchman-dominguez
05/29/2019, 9:56 PMamanda.hinchman-dominguez
05/29/2019, 9:56 PMnapperley
05/29/2019, 11:04 PMimport tornadofx.Dimension
import tornadofx.Dimension.LinearUnits
import tornadofx.Stylesheet
class AppStyle : Stylesheet() {
init {
s(".root") {
fontSize = Dimension(1.3, LinearUnits.em)
fontFamily = "Noto Sans"
}
}
}
napperley
05/31/2019, 1:27 AMCarlton Whitehead
05/31/2019, 2:16 AMRuckus
06/03/2019, 8:19 PMSwiftUI requires iOS 13, watchOS 6, tvOS 13, or macOS Catalina. To use the SwiftUI design canvas Xcode 11 must running on macOS Catalina.
abhinay
06/04/2019, 5:27 AMnapperley
06/05/2019, 8:28 AMPietro Poluzzi
06/09/2019, 1:46 PMStephane M
06/11/2019, 12:27 PMValV
06/13/2019, 10:18 PMOvsyannikov Alexey
06/15/2019, 2:21 PMnapperley
06/17/2019, 1:42 AMprimaryStage.onCloseRequest
however the onCloseRequest event is being ignored.jschneider
06/18/2019, 1:28 PMjschneider
06/19/2019, 6:29 PMcoletz
06/28/2019, 10:29 AMamanda.hinchman-dominguez
07/02/2019, 5:20 PMsbyrne
07/02/2019, 7:36 PMTableView
?altavir
07/06/2019, 2:22 PMdarkmoon_uk
07/08/2019, 10:32 AMMartin
07/11/2019, 1:18 PMreadonlyColumn("Preis", ArticleDTO::money).cellFormat {
text = it
tableColumn.isSortable = false
style {
fontFamily = "monospace"
textAlignment = TextAlignment.RIGHT
}
}
Am I doing something wrong? I wonder because the rest (fontFamily) works..geepawhill
07/16/2019, 12:26 AMpike
07/17/2019, 12:56 AMdata class rule(val name: String, val def: String)
class ruleBook{
val rulesProperty = SimpleListProperty<rule>()
var rules by rulesProperty
}
class RuleBookVM: ItemViewModel<ruleBook>() {
val rules = bind(ruleBook::rulesProperty)
}
class TestView : View("Test View") {
val myRuleBook: RuleBookVM by inject()
init {
myRuleBook.rules.value.add(rule("hoge", "fuga"))
}
val name = textfield()
val definition = textfield()
override val root = vbox{
label("Test")
add(name)
add(definition)
button("Add a rule").action{
myRuleBook.rules.value.add(rule(name.text, definition.text))
}
tableview(myRuleBook.rules) {
column("name", rule::name)
column("def", rule::def)
}
}
}
Ovsyannikov Alexey
07/17/2019, 9:54 AMabhinay
07/17/2019, 10:24 AM