I thought this was a known bug that just never gets fixed. This has given a black canvas when you click into the editor on my machine for ages:
#lang racket/gui (define testframe% (class frame% (define (init-layout) (letrec ((t (new text%))) (void (new editor-canvas% [parent this] [editor t] [style '(transparent)])))) (super-new) (init-layout))) (define frame (new testframe% [label "Editor Canvas Test"] [width 400] [height 400])) (send frame show #t) On Tue, 07 Nov 2017 17:44:07 +0000 Stephen De Gabrielle <spdegabrie...@gmail.com> wrote: > If you pop you code on pasterack or a gist I’ll test on OS X and > windows > > S. > > On Tue, 7 Nov 2017 at 15:49, Erich Rast <er...@snafu.de> wrote: > > > Hi! > > > > This is something I've been wondering for a while already but never > > had time to ask. > > > > When an editor-canvas% is set to transparent in its style list, and > > I type in it, then the whole editor gets black and nothing can be > > seen. > > > > Shouldn't it be gray, as the window background so it looks as if you > > type directly on the window? > > > > For my purposes, I could set the background color directly > > in a non-transparent editor-canvas%, but I see no > > platform-independent, Racket-native way of obtaining the exact > > window background color. Do I need to implement changes in the > > on-paint method? Is the black canvas desired behavior? > > > > [tested on Linux Mint 18.2 Cinnamon 64 bit, Cinnamon Version 3.2.7, > > Radeon R9 280X graphics card] > > > > Best, > > > > Erich > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Racket Users" group. > > To unsubscribe from this group and stop receiving emails from it, > > send an email to racket-users+unsubscr...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.