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
TurboBird IBX
by
maurog
[
Today
at 01:38:07 am]
Need help with compiling ...
by
dbannon
[
Today
at 01:02:16 am]
Hints in TTrayIcon
by
dbannon
[
Today
at 12:44:28 am]
FindWindow seems to not w...
by
rca
[
Today
at 12:41:30 am]
"F2": possible bug in IDE...
by
speter
[
Today
at 12:09:58 am]
fishing problem ;)
by
speter
[December 05, 2025, 11:58:31 pm]
Need help converting a C+...
by
MathMan
[December 05, 2025, 10:15:13 pm]
Anyone interested in help...
by
ad1mt
[December 05, 2025, 09:41:40 pm]
Problem with TSQLQuery
by
rvk
[December 05, 2025, 09:31:58 pm]
Just Curious: When has an...
by
ad1mt
[December 05, 2025, 09:22:02 pm]
Need help to build FPC fo...
by
PascalDragon
[December 05, 2025, 09:13:32 pm]
The Case For Pascal, 55 Y...
by
threedslider
[December 05, 2025, 08:40:50 pm]
Can't find TToolButton at...
by
AgriMensor
[December 05, 2025, 08:32:40 pm]
Access Violation - Databa...
by
Thausand
[December 05, 2025, 08:25:02 pm]
How to load read large CS...
by
jcmontherock
[December 05, 2025, 06:20:34 pm]
$ifdef highlighting
by
440bx
[December 05, 2025, 05:38:11 pm]
Corrupted strings
by
LemonParty
[December 05, 2025, 05:13:18 pm]
Possible LMAX Disruptor (...
by
jamie
[December 05, 2025, 03:40:34 pm]
can't add new treenode
by
sydenis
[December 05, 2025, 03:39:28 pm]
About ORM framework
by
paweld
[December 05, 2025, 03:14:02 pm]
Qt6 / X11: problem with G...
by
zeljko
[December 05, 2025, 12:56:02 pm]
Any way to exclude terms ...
by
old_DOS_err
[December 05, 2025, 12:40:02 pm]
Lazarus Bugfix Release 4...
by
Martin_fr
[December 05, 2025, 11:11:18 am]
Devin - my new lover (CEF...
by
Nicole
[December 05, 2025, 10:16:35 am]
Why this code is working ...
by
Tommi
[December 05, 2025, 09:53:10 am]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] How to save a Graphic from a TPicture in the Clipboard (Linux problem)? (Read 3052 times)
Zvoni
Hero Member
Posts: 3165
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: 13264
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