Re: [racket-users] Custom repl UI widgets
Cool, I have a little snip now that I have a precedure and an input value and when I click I can increment the input val and display the re-evaluated expression. One thing I'd like to add are some controls like a slider or buttons. I know I could just draw something my self and handle clicks myself (which seems doable but tedious) but I'm wondering if there's a way to embed racket's gui slider or button in a snip with some other custom drawn things. Is that possible? Maybe with a custom editor snip? -- 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. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Custom repl UI widgets
At Wed, 25 Mar 2015 17:08:56 -0700 (PDT), Steve Olsen wrote: > I was wondering if anybody could show me an example of a very simple > snip% that maybe drew a circle and had some sort of click interaction > that I could work off of. I'll add the enclosed example to the documentation. -- 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. For more options, visit https://groups.google.com/d/optout. main.rkt Description: Binary data
[racket-users] Custom repl UI widgets
Hey all, I'd like to make some custom interactive UI elements that are similar to the manipulate functionality that mathematica has. I know dr racket already has some elements that display custom in the repl and can be interacted with. Images are displayed, and plots are displayed and interactive. I would like to work on making some more little custom widgets. I worked out from some chatting on irc that snip% is the element that drracket displays. I've looked at the plot snip%, the number snip%, the pict3d snip% and the docs on snip% but I haven't been able to put together a working snip subclass of my own that will display anything. I was wondering if anybody could show me an example of a very simple snip% that maybe drew a circle and had some sort of click interaction that I could work off of. I'm not too familiar with racket's gui system yet so looking for a little sample I can start from. Any help would be great, thanks. -- 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. For more options, visit https://groups.google.com/d/optout.