0.1.1 Refactoring almost done. /JL
This commit is contained in:
+9
-2
@@ -76,11 +76,18 @@ type (
|
||||
)
|
||||
|
||||
func CreatePalletteGroup(mw *MyMainWindow) *walk.GroupBox {
|
||||
mw.leftPanel, _ = walk.NewComposite(mw.content)
|
||||
vb := walk.NewVBoxLayout()
|
||||
mw.leftPanel.SetLayout(vb)
|
||||
vb.SetMargins(walk.Margins{0, 0, 0, 0})
|
||||
mw.leftPanel.SetMinMaxSize(walk.Size{Width: 280, Height: 0}, walk.Size{Width: 280, Height: 0})
|
||||
pallette_group, _ := walk.NewGroupBox(mw.leftPanel)
|
||||
pallette_group.SetTitle("Pallette")
|
||||
pallette_group.SetLayout(walk.NewVBoxLayout())
|
||||
vb = walk.NewVBoxLayout()
|
||||
pallette_group.SetLayout(vb)
|
||||
comp, _ := walk.NewComposite(pallette_group)
|
||||
comp.SetLayout(walk.NewHBoxLayout())
|
||||
hb := walk.NewHBoxLayout()
|
||||
comp.SetLayout(hb)
|
||||
comp.Layout().SetMargins(walk.Margins{0, 0, 0, 0})
|
||||
lbl, _ := walk.NewLabel(comp)
|
||||
lbl.SetText("Brand:")
|
||||
|
||||
Reference in New Issue
Block a user