[racket-users] Re: horizontal alignment in a message% or equivalent

2019-10-13 Thread Simon Schlee
Another possibility is to set the stretchable-width of the message to #f, this way the message does not take more than its minimal required space. #lang racket/gui (define (example) (define frame (new frame% [label "Alignment example"] [width 400])) (define vbox (new vertical-panel% [parent

Re: [racket-users] horizontal alignment in a message% or equivalent

2019-10-13 Thread Martin DeMello
thanks, that worked nicely! martin On Sun, Oct 13, 2019 at 8:02 AM Laurent wrote: > If I remember correctly, I think you want to add a spacer box at the right > of your message% in the same panel: > https://docs.racket-lang.org/gui/grow-box-spacer-pane_.html?q=message%25 > so that the message t

Re: [racket-users] horizontal alignment in a message% or equivalent

2019-10-13 Thread Laurent
If I remember correctly, I think you want to add a spacer box at the right of your message% in the same panel: https://docs.racket-lang.org/gui/grow-box-spacer-pane_.html?q=message%25 so that the message takes only the space it needs and is thus flushed to the left. On Sun, Oct 13, 2019 at 8:11 A

Re: [racket-users] Syntax pattern to match a sequence with x identical elements?

2019-10-13 Thread Jonathan Simpson
Thanks Alexis. To anyone who is in a position to look into this: it would be great if this can make it into the upcoming 7.5 release. -- Jonathan On Sunday, October 13, 2019 at 4:08:00 AM UTC-4, Alexis King wrote: > > I think that error is a bug in syntax/parse. I have reported it here: > > ht

Re: [racket-users] Syntax pattern to match a sequence with x identical elements?

2019-10-13 Thread Alexis King
I think that error is a bug in syntax/parse. I have reported it here: https://github.com/racket/racket/issues/2856 > On Oct 12, 2019, at 21:45, Jonathan Simpson wrote: > > I'm not sure exactly why my syntax class wasn't working, but it is working

[racket-users] horizontal alignment in a message% or equivalent

2019-10-13 Thread Martin DeMello
I'm trying to create a message% with the text left-justified rather than centred, and have been searching through the docs with no luck. Is there a way to do it, or a widget I should be using instead? My use case is to provide a status message at the bottom of a frame. martin -- You received thi