I have extended a pasteboard% editor that overrides the `on-paint` method to draw a snazy background. (Also the min width and height have been set to 200.)
When I put this editor in a snip using `(make-object editor-snip% (new snazy-pasteboard%))`, and insert that snip directly into drracket (via a plugin adding it to the insert menu), I see my snip with the snazy background. Unfortunately, the moment I try to run `copy` on that snip (which happens whenever the REPL prints out the snip), all I get is a small square. I made sure to override the `copy-self` and `copy-self-to` methods for my extended pasteboard%, editor, and I have even made sure that the minimum width and height are getting set when the copy happens. All of the data I would expect are still there, but the background is not drawn at all, and the original size of the snip is lost too (even though the minimum height and width fields still both say 200 when checked). Finally, I made sure to call the editor's `invalidate-bitmap-cache` in an attempt to make sure it at least got repainted, with no luck. So, I'm stumped. Does anyone have any suggestions as to why my extended editor is loosing relevant properties? If I copy a pasteboard% that has not been extended it works as expected, so it wouldn't surprise me if I forgot to override something, but I can't find any examples. Any help is appreciated, thanks. ~Leif Andersen -- 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.