0.0.20 Added beads onhand. /JL
This commit is contained in:
@@ -15,9 +15,12 @@ type (
|
|||||||
ColorID int
|
ColorID int
|
||||||
Checkbox *walk.CheckBox
|
Checkbox *walk.CheckBox
|
||||||
backgroundColor walk.Brush
|
backgroundColor walk.Brush
|
||||||
|
tooltip walk.ToolTip
|
||||||
Red byte
|
Red byte
|
||||||
Green byte
|
Green byte
|
||||||
Blue 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) {
|
func (bc *BeadColor) SetBackgroundColor(col walk.Color) {
|
||||||
bc.backgroundColor, _ = walk.NewSolidColorBrush(col)
|
bc.backgroundColor, _ = walk.NewSolidColorBrush(col)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (bc *BeadColor) GetOnHand() int {
|
||||||
|
return bc.onHand
|
||||||
|
}
|
||||||
|
|
||||||
|
func (bc *BeadColor) SetOnHand(onHand int) {
|
||||||
|
bc.onHand = onHand
|
||||||
|
}
|
||||||
|
|||||||
@@ -27,12 +27,13 @@ type MyMainWindow struct {
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
AppName string = "BeadImager"
|
AppName string = "BeadImager"
|
||||||
Version string = "0.0.19"
|
Version string = "0.0.20"
|
||||||
CopyRight string = "©2022 Jan Lerking"
|
CopyRight string = "©2022 Jan Lerking"
|
||||||
STD_MESS string = "Ready"
|
STD_MESS string = "Ready"
|
||||||
UserPath string = "C:\\Users\\janle\\BeadImager"
|
//UserPath string = "C:\\Users\\janle\\BeadImager"
|
||||||
LogFile string = "BeadImager.log"
|
UserPath string = "C:\\Users\\dksojlg\\BeadImager"
|
||||||
Sep string = "\\"
|
LogFile string = "BeadImager.log"
|
||||||
|
Sep string = "\\"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user