$editable->paste_clipboard() bug?



For some reason when I use the following:

        $textbox->set_editable(1);
        $textbox->paste_clipboard();
        $textbox->set_editable(0);
        $textbox->insert_text("testing 1 2 3\n");
        $clipboard = $textbox->get_chars( 0, -1 );
        print $clipboard . "\n";

I only get "testing 1 2 3" in $clipboard. When I paste a second time
get_chars returns the contents of $textbox just before the paste event
(original paste + "testing 1 2 3").

Am I doing something wrong, or is this a bug?

Greg
-






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]