[plt-scheme] get caret position in text%

From: Martin DeMello (martindemello at gmail.com)
Date: Mon Jun 2 12:46:50 EDT 2008

I went through the docs, and couldn't find anything relating to the
caret. I found the following methods containing 'paragraph':

last-paragraph
line-paragraph
paragraph-end-line
paragraph-end-position
paragraph-start-line
paragraph-start-position
position-paragraph
set-paragraph-alignment
set-paragraph-margins

of which only last-paragraph doesn't take an argument.

martin

On Mon, Jun 2, 2008 at 4:20 AM, Robby Findler <robby at cs.uchicago.edu> wrote:
> If you want the line and column according to the soft line breaks,
> look at the methods with the name "line" in them and if you want the
> line and column according only to where newlines are in the buffer,
> look for methods with the name "paragraph".
>
> http://docs.plt-scheme.org/gui/text_.html
>
> Robby
>
> On Mon, Jun 2, 2008 at 12:15 AM, Martin DeMello <martindemello at gmail.com> wrote:
>> How do I get the row and column the caret is currently at in a text% widget?
>>
>> martin
>> _________________________________________________
>>  For list-related administrative tasks:
>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>
>>
>


Posted on the users mailing list.