benknoble / frosthaven-manager

GUI Frosthaven Scenario Manager
https://benknoble.github.io/frosthaven-manager
Other
5 stars 0 forks source link

Create readonly, copyable, text+image widget #66

Closed benknoble closed 6 months ago

benknoble commented 7 months ago

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.

benknoble commented 6 months ago

Should support reasonable text-reflowing.