On Oct 9, 2007, at 10:14 AM, <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Here's a short app to explain my pb:
>
> int main()
> {
> Fl_Double_Window *win = new Fl_Double_Window
> (300,200,"Fl_Multiline_Output");
> Fl_Multiline_Output *text = new Fl_Multiline_Output(0, 0, 300,
> 200);
> text->textsize(12);
> text->value("Hello World This is a test\nHello World This is a
> test");
>
> win->show();
> return Fl::run();
> }
>
> 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).
Fl_Multiline_Output supports Ctrl-C starting with version 1.1.7 IIRC
(or latest 1.1.8). It obviously does not support Ctrl-V because it is
an output-only widget. Fl_Multiline_Input supports Ctrl-V.
Fl_Text_Editor is genarally the nicer widget if you want to do any
kind of advanced text editing. It too supports Ctrl-C and Ctrl-V.
If you really want to do some manual copy and paste, read the
documentation for Fl::copy() and watch for the FL_PASTE event. But
these are only very rarely needed, so please consider sticking with
the built-in Ctrl-C and Ctrl-V of the text editors first.
Matthias
PS: The Fl_Text_Buffer is a helper for the Fl_Text_Editor and
Fl_Text_Display class and won't help you with cut/copy/paste issues.
----
http://robowerk.com/
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk