FWIW I just found an introduction to Racket GUIs by Andres Ramos:

https://www.youtube.com/watch?v=yo6wVXS6dkU

/soegaard

Den tir. 19. nov. 2019 kl. 18.49 skrev pow bam <darrk...@gmail.com>:

> Hello, I am very new to programming and up until this point I had only
> seriously messed with the AutoIt language - it was easy to search and find
> out how to do things as their forums were quite active and already
> possessed a wealth of data that any determined person could get by on with
> just search alone and never needing to actively post. I built myself an
> entire program in this fashion, learning as I went. I decided I wanted to
> learn how to do this in a "real" full-blown language (tho you could easily
> argue that AutoIt is a full language now). I've decided that I love the
> idea of Lisp and Racket in particular but I am hitting roadblocks to that
> goal as the search functionality and community just isn't near the level of
> AutoIt. So here I am, actually posting in the only place it appears I can..
>
> I am trying to make use of (get-directory) which pops up a GUI prompt
> asking a user to select a directory..
>
> https://docs.racket-lang.org/gui/Windowing_Functions.html#%28def._%28%28lib._mred%2Fmain..rkt%29._get-directory%29%29
>
> Here is my code which works..
>
> #lang racket/gui
> (require racket/class)
> (define gds-main
>   (new frame%
>        [label "GD Switcher"]
>        [width 250]
>        [height 300]
>        [style '(no-resize-border)]))
> (define panel-1
>   (new vertical-panel%
>        [parent gds-main]
>        [style '(border)]
>        [alignment '(center center)]))
> (new choice%
>      [parent panel-1]
>      [label #f]
>      [choices '("Forgotten Gods"
>                 "Ashes of Malmouth"
>                 "Vanilla Ice Cream")])
> (get-directory)
> (send gds-main center 'both)
> (send gds-main show #t)
>
>
> ..if I just use get directory as-is but if I try
>
> (get-directory [message "Select a folder.."])
>
> in any combination, and I've tried so many, it only ever gives me back the
> error..
>
> message: unbound identifier in: message
>
> What am I missing, how do I make this work?
>
> Thank you in advance for any insight.
>
> --
> 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/d/msgid/racket-users/67dff8ff-cbd2-4d26-8901-34fc2be43928%40googlegroups.com
> <https://groups.google.com/d/msgid/racket-users/67dff8ff-cbd2-4d26-8901-34fc2be43928%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
-- 
Jens Axel Søgaard

-- 
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/d/msgid/racket-users/CABefVgzEfWzbbrosdotifEhVHn3eQ%3DAbCeTY%2BZUGdRLEodT8DA%40mail.gmail.com.

Reply via email to