<div dir="ltr"><div>Here is a follow-up.</div><div><br></div><div>I wrote a simple test using LCL Gtk2 and gtk_clipboard_store. This test allows the clipboard data to persist after my program exited. Button1 click sets the clipboard data. If Button2 clicked the data will persist after the program exits. If Button2 is not clicked, the data does not persist. Curiously, as the LCL Gtk2 currently stands, gtk_clipboard_store() does not work. I suspect the LCL is not using the same GdkAtom clipboard as returned by gtk_clipboard_get(GDK_SELECTION_CLIPBOARD).</div><div><br></div><div>uses<br>  Gtk2, Gdk2;<br><br>{ TForm1 }<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br>  S: string;<br>begin<br>  S := Edit1.Text;<br>  gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_CLIPBOARD), PChar(S), Length(S))<br>end;<br><br>procedure TForm1.Button2Click(Sender: TObject);<br>begin<br>  gtk_clipboard_store(gtk_clipboard_get(GDK_SELECTION_CLIPBOARD));<br>end;<br><br>procedure TForm1.Button3Click(Sender: TObject);<br>begin<br>  Close;<br>end;         <br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div>