Robby,
Thank you so much! That was exactly the info I needed.
-Bruce
On 22 Apr 2016, at 21:43, Robby Findler wrote:
> The intention of the edit-menu:between- methods is that you add
> menu items to the argument menu and then supply that same method to
> the super call (if you make the
The intention of the edit-menu:between- methods is that you add
menu items to the argument menu and then supply that same method to
the super call (if you make the super call). Like the below, for
example (but this creates a submenu).
#lang racket/gui
(require framework)
(define ext-frame%
How are you running Scribble? The command line `scribble` program, DrRacket's
scribble plugin, or through `raco setup`?
--
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
2 small suggestions:
#lang racket/gui
(require framework)
(define ext-frame%
(frame:standard-menus-mixin
(frame:status-line-mixin
frame:basic%)))
(define (patch-menu parent-frame)
(define m
(new menu%
[parent (list-ref (send (send parent-frame get-menu-bar) get-items)
> On Apr 22, 2016, at 8:36 PM, Hendrik Boom wrote:
>
> It seems scribble likes to put its output where the document source is,
> with a different file extension.
>
> I like to separate my source code from generated files.
>
> (1) How can I tell scribble to place the
It seems scribble likes to put its output where the document source is,
with a different file extension.
I like to separate my source code from generated files.
(1) How can I tell scribble to place the generated html into a
different directory? Is there a command line option for this?
(2)
I'm writing some Typed Racket code that works with syntax objects, which
currently can't be converted to contracts since syntax chaperones aren't a
thing. As a result, if I want untyped racket users to use my library, I have to
`unsafe-provide` functions in my module.
However, all of my
On Friday, April 22, 2016 at 10:40:01 AM UTC-7, Ronie Uliana wrote:
> I like a lot this advice from Haskell:
>
> "... in Haskell it is not possible to alter objects, but there are many
> functions which return a somehow altered input object. This object should be
> the last parameter because
Currently, the handin-server runs student expressions in an ‘eval’ which
intercepts errors and re-raises them with a message that includes the failing
expression. All good.
However, it doesn’t catch all of them. Specifically, if the exception contains
any values that are opaque to
expected: (or/c (is-a?/c menu%) (is-a?/c popup-menu%))
given: 10
The [documentation][1] actually states that the method should expect a
menu-item%, not a menu%
(send a-frame:standard-menus edit-menu:between-clear-and-select-all
menu)
→ void?
menu : (is-a?/c menu-item%)
Also, I’m still
I like a lot this advice from Haskell:
"... in Haskell it is not possible to alter objects, but there are many
functions which return a somehow altered input object. This object should be
the last parameter because then you can compose a sequence of operations on
this object"
> On Apr 21, 2016, at 7:46 AM, Matthew Flatt wrote:
>
> At Wed, 20 Apr 2016 20:58:34 -0400, "'John Clements' via Racket Users" wrote:
>> I feel like this must be a FAQ. I have a server process that I’m starting
>> with
>> process*, and I’d like to try to make sure that it
I think number->string is intended to be like `write` (ie written to
be read back in hopefully without losing anything) and maybe you want
something that's more in the spirit of `display`? (I.e., show
something to a human in a hopefully useful format (at least that's how
I see the difference
This is complicated by single-flonums which seem to pretty out in the
reading format:
(number->string 3f0) ===> "3.0f0"
which is likely to look like an error to users.
This makes me feel like I should never use number->string to show
something to a user... which seems strange.
On Wed, Apr 20,
Not to give an excuse to design the argument order poorly... it would be great
if DrRacket could display named place-holders for each argument dynamically.
Then you wouldn't need to guess or try to remember illogical set of parameter
orders. The argument name could be taken dynamically from the
My local docs gave a 0-arg method. See attached.
On Apr 22, 2016, at 9:16 AM, Robby Findler wrote:
> These docs seem right:
>
>
These docs seem right:
http://docs.racket-lang.org/framework/Frame.html?q=file-menu%3Abetween#%28meth._%28%28%28lib._framework%2Fmain..rkt%29._frame~3aeditor-mixin%29._edit-menu~3abetween-select-all-and-find%29%29
Robby
On Fri, Apr 22, 2016 at 7:52 AM, Matthias Felleisen
If you modify your sample code like this,
#lang racket/gui
(require framework)
(define ext-frame%
(frame:standard-menus-mixin
(frame:status-line-mixin frame:basic%)))
(define shc-frame%
(class ext-frame%
(super-new)
(define/override (edit-menu:create-clear?) #f)
I'm having trouble with overriding one of framework's methods to add a menu
item. Here's what I'm currently doing:
#lang racket/gui
(require framework)
(define ext-frame%
(frame:standard-menus-mixin
(frame:status-line-mixin frame:basic%)))
(define
19 matches
Mail list logo