0.0.26 Updated tooltips. /JL

This commit is contained in:
2022-12-15 22:23:21 +01:00
parent 4d277b897d
commit 328599b9bd
2 changed files with 3 additions and 3 deletions

View File

@@ -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")

View File

@@ -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"