Store role in Boxes

This commit is contained in:
2024-06-03 21:13:18 -04:00
parent d8ae20d739
commit 2ab920eb26
14 changed files with 40 additions and 19 deletions

View File

@@ -45,8 +45,11 @@ func newScrollbar (orient string) *Scrollbar {
this.OnMouseUp(this.handleMouseUp)
this.OnMouseMove(this.handleMouseMove)
this.OnScroll(this.handleScroll)
tomo.Apply(this.handle, tomo.R("objects", "SliderHandle", orient))
tomo.Apply(this, tomo.R("objects", "Slider", orient))
this.handle.SetRole(tomo.R("objects", "SliderHandle", orient))
tomo.Apply(this.handle)
this.SetRole(tomo.R("objects", "Slider", orient))
tomo.Apply(this)
return this
}