Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-03

Using the clipboard in linux

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

appjaws

How do I save, copy to and paste from the clipboard using a kde environment on linux 64?
I am using Lazarus 1.0.6 and fpc 2.6.0.
Thanks for any help
Paul

---This message has been sent using Thunderbird on kubuntu---

Reply by email

Flávio Etrusco
to appjaws
appjaws wrote 5 lines
How do I save, copy to and paste from the clipboard using a kde environment on linux 64? I am using Lazarus 1.0.6 and fpc 2.6.0. Thanks for any help Paul
Add unit 'Clipbrd', then
    Clipboard.AsText := 'something';

For custom formats, use AddFormat.

For images, method SaveToClipboardFormat on the image (TGraphic).

-Fl?vio

Reply by email

appjaws
to Flávio Etrusco
Fl?vio Etrusco wrote 16 lines
On Sun, Mar 3, 2013 at 1:20 PM, appjaws wrote: > How do I save, copy to and paste from the clipboard using a kde environment > on linux 64? > I am using Lazarus 1.0.6 and fpc 2.6.0. > Thanks for any help > Paul Add unit 'Clipbrd', then Clipboard.AsText := 'something'; For custom formats, use AddFormat. For images, method SaveToClipboardFormat on the image (TGraphic). -Fl?vio

I tried this and it didn't work in Linux.
I'll try again
Thanks
Paul

---This message has been sent using Thunderbird on kubuntu---

Reply by email

Mark Morgan Lloyd
to appjaws
appjaws wrote 21 lines
On 03/03/13 17:04, Fl?vio Etrusco wrote: > On Sun, Mar 3, 2013 at 1:20 PM, appjaws wrote: >> How do I save, copy to and paste from the clipboard using a kde >> environment >> on linux 64? >> I am using Lazarus 1.0.6 and fpc 2.6.0. >> Thanks for any help >> Paul > > Add unit 'Clipbrd', then > Clipboard.AsText := 'something'; > > For custom formats, use AddFormat. > > For images, method SaveToClipboardFormat on the image (TGraphic). > > -Fl?vio > I tried this and it didn't work in Linux. I'll try again

Which didn't work: text or graphic?

[My experience is on 32-bit KDE but] Remember that the persistence of something on the clipboard is that of the program that put it there. However look at KDE's "Klipper" which keeps a history.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

appjaws
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 30 lines
appjaws wrote: > On 03/03/13 17:04, Fl?vio Etrusco wrote: >> On Sun, Mar 3, 2013 at 1:20 PM, appjaws >> wrote: >>> How do I save, copy to and paste from the clipboard using a kde >>> environment >>> on linux 64? >>> I am using Lazarus 1.0.6 and fpc 2.6.0. >>> Thanks for any help >>> Paul >> >> Add unit 'Clipbrd', then >> Clipboard.AsText := 'something'; >> >> For custom formats, use AddFormat. >> >> For images, method SaveToClipboardFormat on the image (TGraphic). >> >> -Fl?vio >> > > I tried this and it didn't work in Linux. > I'll try again Which didn't work: text or graphic? [My experience is on 32-bit KDE but] Remember that the persistence of something on the clipboard is that of the program that put it there. However look at KDE's "Klipper" which keeps a history.

Thank you very much, I now have it working and understand how to use auto complete. Why it didn't work before I've no idea, probable me making a silly mistake.
Paul

---This message has been sent using Thunderbird on kubuntu---

Reply by email