From 328599b9bd135dfd807cb3c3f103fdd81b0315fd Mon Sep 17 00:00:00 2001 From: Lerking Date: Thu, 15 Dec 2022 22:23:21 +0100 Subject: [PATCH] 0.0.26 Updated tooltips. /JL --- color.go | 4 ++-- main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/color.go b/color.go index 4ba4f0b..fd3be24 100644 --- a/color.go +++ b/color.go @@ -92,7 +92,7 @@ func NewBeadColor(mw *MyMainWindow, name string, id int, onhand int, red byte, g } //Setup info tooltip color.InfoTooltip, _ = walk.NewToolTip() - color.InfoTooltip.SetInfoTitle("On hand") + color.InfoTooltip.SetInfoTitle(name + " - " + fmt.Sprint(id)) color.info.SetImage(walk.IconInformation()) color.InfoTooltip.AddTool(color.info) color.InfoTooltip.SetText(color.info, "Approx. "+fmt.Sprint(color.onHand)+" left on hand") @@ -103,7 +103,7 @@ func NewBeadColor(mw *MyMainWindow, name string, id int, onhand int, red byte, g } //Setup warning tooltip color.WarningTooltip, _ = walk.NewToolTip() - color.WarningTooltip.SetWarningTitle("Low on hand") + color.WarningTooltip.SetWarningTitle(name + " - " + fmt.Sprint(id)) color.warning.SetImage(walk.IconWarning()) color.WarningTooltip.AddTool(color.warning) color.WarningTooltip.SetText(color.warning, "Only "+fmt.Sprint(color.onHand)+" left on hand") diff --git a/main.go b/main.go index a35ef4a..3bf442b 100644 --- a/main.go +++ b/main.go @@ -28,7 +28,7 @@ type MyMainWindow struct { const ( AppName string = "BeadImager" - Version string = "0.0.25" + Version string = "0.0.26" CopyRight string = "©2022 Jan Lerking" STD_MESS string = "Ready" LogFile string = "BeadImager.log"