0.1.1 Refactoring almost done. /JL

This commit is contained in:
2022-12-17 15:53:29 +01:00
parent 9b5856ddf1
commit 1e4e718e0c
5 changed files with 223 additions and 146 deletions
+17
View File
@@ -29,6 +29,23 @@ type (
}
)
func CreateSettingsGroup(mw *MyMainWindow) {
log.Println("Setting up settings...")
mw.rightPanel, _ = walk.NewComposite(mw.content)
vb := walk.NewVBoxLayout()
mw.rightPanel.SetLayout(vb)
vb.SetMargins(walk.Margins{0, 0, 0, 0})
mw.rightPanel.SetMinMaxSize(walk.Size{Width: 220, Height: 0}, walk.Size{Width: 220, Height: 0})
sg, _ := walk.NewGroupBox(mw.rightPanel)
sg.SetTitle("Settings")
sg.SetAlignment(walk.AlignHNearVNear)
vb = walk.NewVBoxLayout()
sg.SetLayout(vb)
vb.SetMargins(walk.Margins{0, 0, 0, 0})
mw.propScroll, _ = walk.NewScrollView(sg)
ShowProperties(mw)
}
func ShowProperties(mw *MyMainWindow) {
log.Println("Showing properties")
mw.properties = new(properties)