Albrecht Schlosser wrote:

> xeron wrote:
>> 
>> I found those methods in documentation this is the changed code:
>> 
>> Fl_Text_Editor text_editor;
>> Fl_Text_Buffer buf_editor;
>> text_editor->buffer(buf_editor);
>> 
>>         int pos = text_editor->insert_position();
>>         int start = buf_editor->line_start(pos);
>>         int line = buf_editor->count_lines(start, pos);
>>         int charpos = pos - start;
>> 
>> How can I detect that the Fl_Text_Buffer (buf_editor) is modified so I
>> can redraw/redisplay new cursor position ?
> 
> Look for callbacks. IIRC, there is/are callback(s) for buffer
> modification, deletion and maybe more, but I don't know how to use them.
> Maybe they are not documented very well (or at all), so you might have to
> look at the sources.
> 
> Albrecht

I found it Fl_Text_Buffer::add_modify_callback(...).
ty ;)!
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to