0.0.1 Initial checkin. /JL

This commit is contained in:
2022-12-07 22:12:37 +01:00
parent 7a66df3701
commit 55133f40b0
25 changed files with 9037 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
package main
import (
"log"
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
)
type MyMainWindow struct {
*walk.MainWindow
te *walk.TextEdit
}
const (
AppName string = "BeadImager"
Version string = "0.0.1"
CopyRight string = "©2022 Jan Lerking"
STD_MESS string = "Ready"
)
func main() {
mw := &MyMainWindow{}
if _, err := (MainWindow{
AssignTo: &mw.MainWindow,
Title: AppName + " " + Version,
MinSize: Size{800, 600},
Layout: VBox{MarginsZero: true},
Children: []Widget{
HSplitter{
Children: []Widget{
PushButton{
Text: "Edit Animal",
},
TextEdit{
AssignTo: &mw.te,
ReadOnly: true,
},
},
},
},
}.Run()); err != nil {
log.Fatal(err)
}
}