Scrollbar now displays scroll value
This commit is contained in:
parent
134f8016c1
commit
15d7031e22
59
scrollbar.go
59
scrollbar.go
@ -43,6 +43,7 @@ func newScrollbar (orient string) *Scrollbar {
|
|||||||
this.OnMouseDown(this.handleMouseDown)
|
this.OnMouseDown(this.handleMouseDown)
|
||||||
this.OnMouseUp(this.handleMouseUp)
|
this.OnMouseUp(this.handleMouseUp)
|
||||||
this.OnMouseMove(this.handleMouseMove)
|
this.OnMouseMove(this.handleMouseMove)
|
||||||
|
this.OnScroll(this.handleScroll)
|
||||||
theme.Apply(this.handle, theme.R("objects", "SliderHandle", orient))
|
theme.Apply(this.handle, theme.R("objects", "SliderHandle", orient))
|
||||||
theme.Apply(this, theme.R("objects", "Slider", orient))
|
theme.Apply(this, theme.R("objects", "Slider", orient))
|
||||||
return this
|
return this
|
||||||