Shift buttons around
This commit is contained in:
parent
86e504e00d
commit
0a9c50e97b
1 changed files with 18 additions and 2 deletions
|
@ -20,13 +20,29 @@ class ProgramWindow private constructor(parent: TApplication, flags: Int) :
|
||||||
addLabel("Welcome to", CENTERED + 13, CENTERED - 4)
|
addLabel("Welcome to", CENTERED + 13, CENTERED - 4)
|
||||||
addLabel("The ORG-NAME-WIP Secure Data Accessor", CENTERED, CENTERED - 3)
|
addLabel("The ORG-NAME-WIP Secure Data Accessor", CENTERED, CENTERED - 3)
|
||||||
|
|
||||||
|
addButton("Exit...", CENTERED + 28, CENTERED,
|
||||||
addButton("Exit...", CENTERED + 14, CENTERED + 10,
|
|
||||||
object : TAction() {
|
object : TAction() {
|
||||||
override fun DO() {
|
override fun DO() {
|
||||||
System.exit(0)
|
System.exit(0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
addButton("Options", CENTERED + 13, CENTERED,
|
||||||
|
object : TAction() {
|
||||||
|
override fun DO() {
|
||||||
|
TODO()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
//Keep in mind, whatever button/element is created last is always the one pre-selected on launch.
|
||||||
|
addButton("Login", CENTERED, CENTERED,
|
||||||
|
object : TAction() {
|
||||||
|
override fun DO() {
|
||||||
|
TODO()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue