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
[Bug] asDateTime conversi...
by
paweld
[
Today
at 11:29:25 am]
Question re. FCL's ssocke...
by
tetrastes
[
Today
at 10:48:13 am]
Lazarus increase process ...
by
dbannon
[
Today
at 10:06:49 am]
Is Lazarus' Tool Palette ...
by
Ally
[
Today
at 09:22:06 am]
fpcupdeluxe - 32bit or 64...
by
d2010
[
Today
at 09:00:21 am]
Error: Enumeration symbol...
by
daniel_sap
[
Today
at 08:45:41 am]
Where are you from?
by
egsuh
[
Today
at 08:39:43 am]
[Solved] Command-line arg...
by
AlexTP
[
Today
at 07:55:42 am]
Lazarus portable
by
d2010
[
Today
at 07:26:58 am]
Status of Missile Command...
by
TBMan
[
Today
at 04:36:47 am]
Why is there no Chinese s...
by
Handoko
[
Today
at 03:41:21 am]
New version of LazMapView...
by
wp
[
Today
at 12:26:03 am]
Is FPGUI still active?
by
cdbc
[December 16, 2025, 08:06:30 pm]
connecting to mariadb
by
alanyoung
[December 16, 2025, 04:36:09 pm]
Lazarus Trunc & macOS Tah...
by
madref
[December 16, 2025, 04:24:54 pm]
[hacked for now] Changing...
by
jamie
[December 16, 2025, 02:57:58 pm]
Why does the call via fun...
by
Warfley
[December 16, 2025, 02:17:38 pm]
About the Class View
by
wp
[December 16, 2025, 01:58:25 pm]
Hint on axis marks
by
wp
[December 16, 2025, 01:35:13 pm]
Lazarus is not working
by
Fred vS
[December 16, 2025, 01:22:23 pm]
TLazSerial : serial port ...
by
CM630
[December 16, 2025, 12:24:27 pm]
Qt6 / X11: problem with G...
by
dbannon
[December 16, 2025, 10:51:56 am]
Does FreePascal have a WM...
by
CM630
[December 15, 2025, 11:20:24 pm]
AVRPascal – free code edi...
by
ackarwow
[December 15, 2025, 10:40:17 pm]
delete cookies
by
Leledumbo
[December 15, 2025, 05:14:27 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] How to save a Graphic from a TPicture in the Clipboard (Linux problem)? (Read 3070 times)
Zvoni
Hero Member
Posts: 3196
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: 13277
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: 1028
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