[EMAIL PROTECTED] wrote:
> I'd like to use the 'ctrl c' and 'ctrl v' shortcuts in order to copy/paste
> the text from my app to the Windows Note Pad (for exemple).
Both Fl_Multiline_Input and Fl_Text_Editor automatically allow
copy/paste
via ^c/^v.
To use Fl_Text_Editor, see:
http://seriss.com/people/erco/fltk/#Fl_Text_Display
..just change the instances of "Fl_Text_Display" to "Fl_Text_Editor"
and it should work fine.
> So I tried to use the Fl_Text_Buffer
>
> Fl_Text_Buffer *buff = new Fl_Text_Buffer();
> buff->text(text->value());
You have to use Fl_Text_Editor; that's the GUI widget.
Fl_Text_Buffer alone is not a widget, it is the "engine" that is used by
Fl_Text_Editor, so you need to use both. See above link for a simple
example.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk