This would be useful in about screens, error messages, server address display,
monster abilities, and other text displays. Critically, it should support using
the mouse for selection without displaying a cursor artifact; it should support
copying; it should also support rich text and images.
I've dug through DrRacket's source a bit (after noticing that it's about screen
did pretty much what I want), and I think I can build something on the
scaffolding once I understand how it works. The relevant code starts in
https://github.com/racket/drracket/blob/master/drracket/drracket/private/app.rkt,
in particular using the about-frame% and wrap-edit% classes, which are
instantiated in about-drscheme.
Understanding this code will definitely requiring understand the methods being
overridden and the super-classes and interfaces of the relevant classes.
Hopefully I can distill this expert system down to a reusable component.
This would be useful in about screens, error messages, server address display, monster abilities, and other text displays. Critically, it should support using the mouse for selection without displaying a cursor artifact; it should support copying; it should also support rich text and images.
I've dug through DrRacket's source a bit (after noticing that it's about screen did pretty much what I want), and I think I can build something on the scaffolding once I understand how it works. The relevant code starts in https://github.com/racket/drracket/blob/master/drracket/drracket/private/app.rkt, in particular using the
about-frame%
andwrap-edit%
classes, which are instantiated inabout-drscheme
.Understanding this code will definitely requiring understand the methods being overridden and the super-classes and interfaces of the relevant classes. Hopefully I can distill this expert system down to a reusable component.