0.0.19 Scale/numedit interconnection done. /JL
This commit is contained in:
@@ -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