From c29ad7048dd4ee733e4a5f9e873ea9a9abc044bf Mon Sep 17 00:00:00 2001 From: Jan Lerking Date: Wed, 14 Dec 2022 12:43:32 +0100 Subject: [PATCH] 0.0.20 Added beads onhand. /JL --- color.go | 11 +++++++++++ main.go | 9 +++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/color.go b/color.go index 6bdf273..1ac686e 100644 --- a/color.go +++ b/color.go @@ -15,9 +15,12 @@ type ( ColorID int Checkbox *walk.CheckBox backgroundColor walk.Brush + tooltip walk.ToolTip Red byte Green byte Blue byte + inStock bool + onHand int } ) @@ -79,3 +82,11 @@ func NewBeadColor(mw *MyMainWindow, name string, id int, red byte, green byte, b func (bc *BeadColor) SetBackgroundColor(col walk.Color) { bc.backgroundColor, _ = walk.NewSolidColorBrush(col) } + +func (bc *BeadColor) GetOnHand() int { + return bc.onHand +} + +func (bc *BeadColor) SetOnHand(onHand int) { + bc.onHand = onHand +} diff --git a/main.go b/main.go index 6b02409..17501b1 100644 --- a/main.go +++ b/main.go @@ -27,12 +27,13 @@ type MyMainWindow struct { const ( AppName string = "BeadImager" - Version string = "0.0.19" + Version string = "0.0.20" CopyRight string = "©2022 Jan Lerking" STD_MESS string = "Ready" - UserPath string = "C:\\Users\\janle\\BeadImager" - LogFile string = "BeadImager.log" - Sep string = "\\" + //UserPath string = "C:\\Users\\janle\\BeadImager" + UserPath string = "C:\\Users\\dksojlg\\BeadImager" + LogFile string = "BeadImager.log" + Sep string = "\\" ) func main() {