WIP scrolling

This commit is contained in:
2023-09-14 14:48:08 -04:00
parent 312ee6270c
commit c210c07b74
6 changed files with 256 additions and 8 deletions

View File

@@ -29,8 +29,12 @@ func NewButton (text string) *Button {
box.label.SetAlign(tomo.AlignMiddle, tomo.AlignMiddle)
box.Add(box.label)
box.SetLayout(buttonLayout)
box.SetPropagateEvents(false)
box.CaptureDND(true)
box.CaptureMouse(true)
box.CaptureScroll(true)
box.CaptureKeyboard(true)
box.OnMouseUp(box.handleMouseUp)
box.OnKeyUp(box.handleKeyUp)
box.SetFocusable(true)