0.0.19 Scale/numedit interconnection done. /JL
This commit is contained in:
2
main.go
2
main.go
@@ -27,7 +27,7 @@ type MyMainWindow struct {
|
||||
|
||||
const (
|
||||
AppName string = "BeadImager"
|
||||
Version string = "0.0.18"
|
||||
Version string = "0.0.19"
|
||||
CopyRight string = "©2022 Jan Lerking"
|
||||
STD_MESS string = "Ready"
|
||||
UserPath string = "C:\\Users\\janle\\BeadImager"
|
||||
|
||||
@@ -91,11 +91,16 @@ func (cp *PropScale) newScaleProperties(mw *MyMainWindow) {
|
||||
log.Println("Setting scale number edit value to: ", nn)
|
||||
sc.SetValue(nn)
|
||||
})
|
||||
sc.SetWidth(30)
|
||||
sc.SetDecimals(0)
|
||||
sc.SetRange(10, 200)
|
||||
nn := float64(slider.Value())
|
||||
sc.SetValue(nn)
|
||||
sc.ValueChanged().Attach(func() {
|
||||
log.Println("Scale number edit value changed")
|
||||
nn := float64(sc.Value())
|
||||
log.Println("Setting scale slider value to: ", nn)
|
||||
slider.SetValue(int(nn))
|
||||
})
|
||||
log.Println("Setting background color...")
|
||||
bg, _ := walk.NewSolidColorBrush(walk.RGB(255, 255, 255))
|
||||
cp.property.SetBackground(bg)
|
||||
|
||||
Reference in New Issue
Block a user