benknoble / frosthaven-manager

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

Create readonly, copyable, text+image widget #66

Closed benknoble closed 10 months ago

benknoble commented 11 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 11 months ago

Should support reasonable text-reflowing.