Re: [racket-users] Re: mouse selection on a text-field%

2016-04-09 Thread Robby Findler
On Sat, Apr 9, 2016 at 11:40 AM, FERREC Romain wrote: > Le 09/04/2016 15:44, Robby Findler a écrit : >> >> You could write a little loop to keep the functions in the keymap and >> remove all the keybindings and then add back in the bindings you >> wanted. That way you could avoid duplicating code?

[racket-users] Re: mouse selection on a text-field%

2016-04-09 Thread FERREC Romain
Le 09/04/2016 15:44, Robby Findler a écrit : You could write a little loop to keep the functions in the keymap and remove all the keybindings and then add back in the bindings you wanted. That way you could avoid duplicating code? Ah yes it is possible, I have not seen some functions in the do

Re: [racket-users] Re: mouse selection on a text-field%

2016-04-09 Thread Robby Findler
You could write a little loop to keep the functions in the keymap and remove all the keybindings and then add back in the bindings you wanted. That way you could avoid duplicating code? Robby On Sat, Apr 9, 2016 at 8:32 AM, mazert wrote: > Le 09/04/2016 15:15, Robby Findler a écrit : >> >> Does

[racket-users] Re: mouse selection on a text-field%

2016-04-09 Thread mazert
Le 09/04/2016 15:15, Robby Findler a écrit : Does this code help? It works, but the problem is there is no ways to choose which funcs I want to include in a keymap, I must include them all :, and I don't want emacs or open/save file keybindings... I finally took some codes from the link i'

Re: [racket-users] Re: mouse selection on a text-field%

2016-04-09 Thread Robby Findler
Does this code help? #lang racket/gui (require framework) (define f (new frame% [label "Select"] [width 300])) (define t (new text-field% [parent f] [label #f])) (define k (send (send t get-editor) get-keymap)) (send k chain-to-keymap

[racket-users] Re: mouse selection on a text-field%

2016-04-09 Thread mazert
Le 08/04/2016 20:27, Matthew Flatt a écrit : > At Fri, 8 Apr 2016 18:50:09 +0200, mazert wrote: >> I try to find an easy way to add the general mouse selection system >> (double click on a word will select it for example) on a text-field gui >> component. > > In the case of double-click to select