[plt-scheme] can't get caret-hiding working with selection

From: Martin DeMello (martindemello at gmail.com)
Date: Tue Apr 29 02:23:09 EDT 2008

On Mon, Apr 28, 2008 at 4:12 AM, Robby Findler <robby at cs.uchicago.edu> wrote:
> I think you want text:hide-caret/selection% from the framework.
>
>  You might want to use the lock method, rather than overriding the
>  can-insert? and can-delete? methods.

Follow on question:  I now have the following method

(define/public (insert-text text)
        (send this lock #f)
        (send this insert text)
        (send this lock #t))

Why, within a method definition, do I need to say (send this lock #f)
rather than just (lock #f)?

martin


Posted on the users mailing list.