gui icon indicating copy to clipboard operation
gui copied to clipboard

list-box% label width in Windows/OS X

Open lehitoskin opened this issue 7 years ago • 0 comments

The label width in a list-box% never changes from its default in Windows and OS X. Consider the following code:

#lang racket/base
(require racket/class
         racket/gui/base)

(define frame
  (new frame%
       [label "foo"]
       [width 300]
       [height 400]))

(define lbox
  (new list-box%
       [parent frame]
       [label "123"]
       [choices '("a" "b" "c")]
       [style '(single vertical-label)]
       [callback (λ (lb evt)
                 (send lb set-label "123456"))]))

(send frame show #t)

On Gentoo, the label changes properly from "123" to "123456", yet on Windows and OS X the label appears unchanged, but what is actually happening is the label is changed and the width of the label is unchanged.

lehitoskin avatar Apr 22 '18 04:04 lehitoskin