Another, less lightweight way is to use panels for different parts of
the chat windows. I put together a sample at
https://gist.github.com/zamora/1cfc6480f7703735dffa3169facfbf10

On Mon, Aug 10, 2020 at 3:32 PM Christopher Lemmer Webber
<[email protected]> wrote:
>
> Hello,
>
> I'm building a little chat application with Racket.  Overall Racket's
> GUI tools are quite comfortable, and I'm just using Rakcet's text editor
> stuff to build the chat.  But a fairly standard thing to do with chat
> applications is to have text like:
>
> (Beware, fixed width ascii art ahead)
>
>  .----------------------------------------------------------------.
>  | FooChat Deluxe                                              [X]|
>  |----------------------------------------------------------------|
>  | File  Blah                                                     |
>  |----------------------------------------------------------------|
>  | <alice> | It's snowing outside!!                     | alice   |
>  | <bob>   | In August????                              | bob     |
>  | <alice> | Nevermind, the snow is a representation of | carol   |
>  |         | collective anxiety about the world         |         |
>  | <bob>   | Oh okay it is snowing then                 |         |
>  |----------------------------------------------------------------|
>  | [Better go get some snow shoes then___________________] [Send] |
>  '----------------------------------------------------------------'
>
> The core idea there being that usernames left-align to the text.
>
> I'm not sure what's the nicest way to do this, though I've taken a guess
> that maybe the "Show/Hide Line Numbers" in DrRacket is the best example.
> I'd be happy to look at that but I can't really find it in the drracket
> repository and am not sure where it would be?
>
> (I guess one other complication is that if you copy-pasta text it would
> be great to still be able to copy paste the names too, but I can think
> of some kludgery that might make that possible.)
>
>  - Chris
>
> --
> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/87lfime1pm.fsf%40dustycloud.org.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CA%2B80D0XvAXnGsWL8vEkOm4JGO50rad2rPWnqwc-ywODKPcGKww%40mail.gmail.com.

Reply via email to