[racket-dev] UI questions for building a multi-file coverage tool

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Tue Apr 26 17:47:52 EDT 2011

On Tue, Apr 26, 2011 at 4:16 PM, John Clements
<clements at brinckerhoff.org> wrote:
> Jonathan Walsh is building a multi-file coverage tool, and has a couple of (simple?) UI questions.
>
> 1) Is there a way (as a tool, natch) to tell DrRacket to bring a particular tab to the front / give it focus?

Is handler:edit-file what you're looking for?

> 2) In a list box, is it possible to style text? For instance, we want to show a list of files covered in the tests, where files without uncovered expressions would be displayed as green and others would be displayed as red.

I don't think that's currently possible, but you could use a
pasteboard with editor-snip%s inside and then style the text in a
text% in there.

Or you could try hierlist, with only a one deep hierarchy.

Neither of these ideas are particularly easy, tho.

Robby

> Thanks,
>
> John Clements
>
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/dev
>



Posted on the dev mailing list.