Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
(Moderator:
Ask
) »
[SOLVED] How to save a Graphic from a TPicture in the Clipboard (Linux problem)?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Clean up and build
by
n7800
[August 14, 2026, 11:03:28 pm]
[Qt5/Qt6] JPSupport-Qt: J...
by
Martin_fr
[August 14, 2026, 09:30:43 pm]
var vs out (including "co...
by
440bx
[August 14, 2026, 09:25:21 pm]
FpDebug: Bugs and API gap...
by
Martin_fr
[August 14, 2026, 09:19:49 pm]
Which Linux version
by
cdbc
[August 14, 2026, 08:57:51 pm]
'ReadStr' ?
by
PascalDragon
[August 14, 2026, 08:33:34 pm]
Cross platform DirectoryW...
by
LemonParty
[August 14, 2026, 07:41:15 pm]
Lazarus Bugfix Release 4....
by
wp
[August 14, 2026, 04:47:58 pm]
LRS Explorer
by
wp
[August 14, 2026, 04:02:45 pm]
TDWEdit
by
docno
[August 14, 2026, 03:35:02 pm]
BS Controls – Silly Compo...
by
Xenno
[August 14, 2026, 02:30:43 pm]
Separators in the compone...
by
JuhaManninen
[August 14, 2026, 01:28:05 pm]
Lazarus, Ubuntu Pi 4 and ...
by
Thaddy
[August 14, 2026, 12:07:04 pm]
Unleashed Pascal (async/a...
by
creaothceann
[August 14, 2026, 11:11:47 am]
AsyncProcess not firing O...
by
Martin_fr
[August 14, 2026, 11:05:52 am]
Is it possible to communi...
by
Xor-el
[August 14, 2026, 10:28:59 am]
How to avoid duplicates i...
by
mig-31
[August 13, 2026, 05:35:46 pm]
QGradientTrackPanel: A Fu...
by
Ed78z
[August 13, 2026, 04:49:24 pm]
Memory location
by
Thaddy
[August 13, 2026, 04:01:56 pm]
TurboBird IBX
by
laguna
[August 13, 2026, 03:55:51 pm]
TlsLib4Pascal
by
Xor-el
[August 13, 2026, 03:06:13 pm]
MR - DebuggerIntf for ter...
by
Martin_fr
[August 13, 2026, 12:54:22 pm]
AArch64, load a constant ...
by
LemonParty
[August 13, 2026, 12:31:06 pm]
Lazarus undead repository...
by
Dankan1890
[August 13, 2026, 10:28:54 am]
[RE-SOLVED] Splitting an ...
by
paweld
[August 13, 2026, 09:52:15 am]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] How to save a Graphic from a TPicture in the Clipboard (Linux problem)? (Read 3885 times)
Zvoni
Hero Member
Posts: 3466
Re: How to save a Graphic from a TPicture into the Clipboard (Linux problem)?
«
Reply #15 on:
December 11, 2024, 02:47:47 pm »
hmmm....
As a Test:
1) Try your Save to Clipboard (That error should show)
2) Try to do a CTRL+V somewhere else (say in gimp or wherever)
3) Try your Save to Clipboard again --> Does the error occur again?
Otherwise i'm out of ideas
Logged
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
wp
Hero Member
Posts: 13649
Re: How to save a Graphic from a TPicture into the Clipboard (Linux problem)?
«
Reply #16 on:
December 11, 2024, 03:04:58 pm »
Quote from: Hartmut on December 11, 2024, 01:44:21 pm
because main file png.pas has only 28 lines
This seems to indicate that you are not writing a standard LCL GUI application. In this case you probably did not have the unit InterfaceBase (or Interfaces?) in the uses clause and thus did not initialize the widgetset-based access to the clipboard.
Logged
Hartmut
Hero Member
Posts: 1172
Re: How to save a Graphic from a TPicture into the Clipboard (Linux problem)?
«
Reply #17 on:
December 11, 2024, 05:17:16 pm »
As I assumed, there was something wrong in the kind in which I started my program. To find out, what I must change, I created a new Topic and a small demo project:
https://forum.lazarus.freepascal.org/index.php/topic,69574.0.html
I close this Topic now. Thanks a lot to wp and Zvoni for your help.
Logged
Print
Pages:
1
[
2
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
(Moderator:
Ask
) »
[SOLVED] How to save a Graphic from a TPicture in the Clipboard (Linux problem)?
TinyPortal
© 2005-2018