gui icon indicating copy to clipboard operation
gui copied to clipboard

Panels/Frames do not respond to scrolling

Open dfeltey opened this issue 8 years ago • 5 comments

The following program creates a top-level frame% instance containing a vertical panel.

#lang racket

(require racket/gui)

(define the-frame
  (new frame%
       [label "a frame"]
       [width 100]
       [height 200]))

(define the-panel
  (new vertical-panel%
       [parent the-frame]
       [style '(auto-vscroll)]))

(for ([i (in-range 50)])
  (new group-box-panel%
       [label (number->string i)]
       [parent the-panel]))

(send the-frame show #t)

Even though a scroll-bar shows up, neither the frame or panel seems to respond to scroll events from the mouse. It would be nice if frames and/or panels supported scrolling with the mouse wheel the same that canvases/editors do.

dfeltey avatar Feb 03 '17 21:02 dfeltey

Same here.

It's been one and a half year. Does any solution come out?

cyyyu avatar Jun 28 '18 05:06 cyyyu

This issue has been mentioned on Racket Discussions. There might be relevant details there:

https://racket.discourse.group/t/scrolling-racket-gui-panels-with-the-mouse/957/3

Related to https://github.com/Bogdanp/racket-gui-easy/issues/15

LiberalArtist avatar Jun 15 '24 13:06 LiberalArtist

This issue has been mentioned on Racket Discourse. There might be relevant details there:

https://racket.discourse.group/t/auto-scrollbars-in-canvas/2914/5

This issue has been mentioned on Racket Discourse. There might be relevant details there:

https://racket.discourse.group/t/auto-scrollbars-in-canvas/2914/6