Hi if I have a simple editor-canvas% with text% in it:
(define editor-canvas (new  editor-canvas% [parent frame]))
(define text (new text%))
(send editor-canvas set-editor text)

1. How do I make the standard right click menu with copy, paste, etc.?

I've seen this example of a custom popup menu:
https://github.com/soegaard/bracket/blob/master/gui/racket-cas.rkt#L351
But is there some shorthand for making the standard copy/paste popup?

2. I can add "Edit" and "Font" to the menu bar like this:
(define mb (new menu-bar% [parent frame]))
(define m-edit (new menu% [label "Edit"] [parent mb]))
(define m-font (new menu% [label "Font"] [parent mb]))
(append-editor-operation-menu-items m-edit #f)
(append-editor-font-menu-items m-font)

In Mac OS this isn't leading to the menu bar flashing blue when I use 
keyboard shortcuts like ⌘c. How can I fix this? I notice DrRacket itself 
has the same bug. This is important for discoverability.

3. How do I do a bulleted list? Should I be using this snip in the browser 
lib? 
https://github.com/racket/drracket/blob/master/drracket/browser/private/bullet.rkt

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/f0f46057-7f57-4b96-9be3-7b356eec2f6a%40googlegroups.com.

Reply via email to