If that worked, try Application.ProcessMessages instead of the timer.
I wonder if Kylix is still available some where.https://sourceforge.net/projects/freeclx/
That's just the libraries.I wonder if Kylix is still available some where.https://sourceforge.net/projects/freeclx/
it should contain the clipboard code requested in this thread. Although, it is possible that the code is nothing more that a thin layer on top of the qt clipboard classes.That's just the libraries.I wonder if Kylix is still available some where.https://sourceforge.net/projects/freeclx/
Also note D7-D2007 code still contain CLX and can be massaged to work with FPC if you have an edition with sourcecode.
I wonder if Kylix is still available some where.Yes, but I really wouldn't recommend using Kylix any more. It is just too out of date these days (compiler and IDE), and CLX uses a terribly old Qt (that just looks crap - doesn't even support anti-aliased text).
after my app exits, other apps don't see this text. Clipboard empty. Why?It is standard X11 behaviour, and is actually more efficient than Windows clipboard. Why, because on Windows, if you copy something to the clipboard you instantly get a copy, and thus it uses memory (RAM) to store that copy. On X11 when you copy something to the clipboard, it simply notifies the windowing system of the window that has content available, but no copy actually exists in RAM yet. Once once a target applications requests that content (via a Paste action), does it query the source window/application for the contents. This explains why you clipboard is empty, because that source application has already terminated.
commit c2af2a386efef5d52db20482e81748fc36aedb91 (https://github.com/graemeg/fpGUI/commit/c2af2a386efef5d52db20482e81748fc36aedb91)
Author: Andrew Haines <andrewd207@****>
Date: Wed Apr 24 17:24:50 2013 +0200
Persistent clipboard support under X11.
Some desktop environments or window managers include support for a clipboard
manager. This clipboard manager can make the content of the clipboard persistent
even after the source application closed down.
Just install a clipboard manager. It's WM/DE problem, not application problem.