0.2.1 Updated pegboard lists. /JL

This commit is contained in:
2022-12-18 22:04:22 +01:00
parent abb43aada8
commit 8e2bae5203
3 changed files with 46 additions and 14 deletions

View File

@@ -9,6 +9,7 @@ import (
type (
BeadColor struct {
Color *walk.Composite
Checkbox *walk.CheckBox
backgroundColor walk.Brush
InfoTooltip *walk.ToolTip
@@ -98,6 +99,7 @@ func NewBeadColor(mw *MyMainWindow, name string, id int, onhand int, red byte, g
hb.SetMargins(walk.Margins{5, 0, 20, 0})
cm.SetLayout(hb)
color := new(BeadColor)
color.Color = cm
log.Println("Bead color struct: ", color)
color.SetBackgroundColor(walk.RGB(red, green, blue))
color.onHand = onhand