Re: [racket-users] Trying to specify resize-border for instance of dialog

2021-06-25 Thread Stefan Schwarzer
On 2021-06-26 01:56, Don Green wrote: > When I specify as follows: > > (define dialog2 (new dialog% > (label "Get-Prototype-dialog") > (style resize-border) > )) > > Returned error: > resize-border: unbound identifier in:

[racket-users] How do I create a scrollable popup window?

2021-06-25 Thread Don Green
How do I create a scrollable popup window? I can create a dialog that is a popup but it is not scrollable. The dialog class does not appear to have a scroll option. Is this where I use a 'panel' class instead of the 'dialog' class? -- You received this message because you are subscribed to the

Re: [racket-users] Trying to specify resize-border for instance of dialog

2021-06-25 Thread Sorawee Porncharoenwase
It should be 'resize-border. Notice the single quote character in front of “resize-border”. FWIW, if you want to ask multiple short questions, you could also use the Racket Slack channel. The sign up link: https://racket-slack.herokuapp.com/ The channel: https://racket.slack.com/ On Fri, Jun 25,

[racket-users] Is it possible to specify a hierarchy of menu-item options in racket/gui more than 2 deep?

2021-06-25 Thread Don Green
Is it possible to specify a hierarchy of menu-item options in racket/gui more than 2 deep? In other words, I am able to define menu-item options such that I do get a menu-bar with options that present sub options and I can call functions using 'callback' from those suboptions, but I have thus f

[racket-users] Trying to specify resize-border for instance of dialog

2021-06-25 Thread Don Green
When I specify as follows: (define dialog2 (new dialog% (label "Get-Prototype-dialog") (style resize-border) )) Returned error: resize-border: unbound identifier in: resize-border -- You received this message because yo

[racket-users] ..

2021-06-25 Thread Don Green
.. -- 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. To view this discussion on the web visit https://groups.google.com

Re: [racket-users] Tilde expansion requirement breaks XDG compliance

2021-06-25 Thread Matthew Flatt
Thanks! I've pushed a change based on your explanation. I was able to confirm that it made the `XDG_CONFIG_HOME` environment take effect when it previously did not, at least. At Fri, 25 Jun 2021 15:44:53 -0700 (PDT), pastel raschke wrote: > Racket seems to insist on using ~/.racket as its special

[racket-users] Tilde expansion requirement breaks XDG compliance

2021-06-25 Thread pastel raschke
Racket seems to insist on using ~/.racket as its special place, despite the apparent fix that added XDG compliance. This happens even when I have racket folders neatly set up in all my xdg dirs, and clear ~/.racket* every time. Stepping through in a debugger, I found the problem was at line 203

[racket-users] Top-level unbound identifiers during expansion

2021-06-25 Thread Greg Rosenblatt
I've encountered an identifier binding order issue that only manifests in the REPL. My current workaround is to use forward definitions followed by set!s. I've heard rumors that the top-level is hopeless, but I'd like to try and make this work without unnecessary workarounds, if possible. To

Re: [racket-users] Is it possible to effectively display a window with a bitmap background?

2021-06-25 Thread Jens Axel Søgaard
Use canvas% fre. 25. jun. 2021 kl. 18.10 skrev Don Green : > Is it possible to effectively display a window with a bitmap background? > In racket/gui, I can see how to apply a bitmap to a button. > If the only way to display a bitmap is in a button, is it practical to > size the button to the ent

[racket-users] Is it possible to effectively display a window with a bitmap background?

2021-06-25 Thread Don Green
Is it possible to effectively display a window with a bitmap background? In racket/gui, I can see how to apply a bitmap to a button. If the only way to display a bitmap is in a button, is it practical to size the button to the entire frame or pane in the frame? -- You received this message beca

Re: [racket-users] Can I break my racket/gui program be broken down into multiple modules?

2021-06-25 Thread Laurent
I'm not entirely sure what you mean but, just in case, you can indeed export created GUI widgets: file gui1.rkt : ``` #lang racket/gui (provide fr msg) (define fr (new frame% [label "Hear me out"])) (define msg (new message% [parent fr] [label "I have an important message"])) ``` file gui2.rkt :