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
Pre-Specialize Generic Fu...
by
Khrys
[
Today
at 07:02:30 am]
The Future of FPC
by
Joanna
[
Today
at 04:48:00 am]
[ANN] fpGUI Toolkit v2.0....
by
ALLIGATOR
[
Today
at 04:31:50 am]
Problem with Generic Cons...
by
Martin_fr
[February 09, 2026, 11:47:40 pm]
[ANN] PasBuild 1.2.0 Rele...
by
Graeme
[February 09, 2026, 11:34:03 pm]
[SOLVED] TFPGObjectList s...
by
Phoenix
[February 09, 2026, 11:18:33 pm]
Fixing Lazarus 4.4 IDE la...
by
Curt Carpenter
[February 09, 2026, 11:14:30 pm]
Debian removes FPC/Lazaru...
by
PascalDragon
[February 09, 2026, 09:58:13 pm]
TRichMemo EM_FORMATRANGE ...
by
rvk
[February 09, 2026, 09:32:39 pm]
ListBox MeasureItem
by
TheCompanionCube
[February 09, 2026, 08:43:49 pm]
How to determine the unkn...
by
LV
[February 09, 2026, 08:34:15 pm]
it2play - IT/S3M module r...
by
Lulu
[February 09, 2026, 08:28:38 pm]
MVP made easier.
by
cdbc
[February 09, 2026, 08:27:52 pm]
Article “Lazarus vs Delph...
by
anse
[February 09, 2026, 07:41:13 pm]
ThorVG - test (lightweigh...
by
ALLIGATOR
[February 09, 2026, 07:30:21 pm]
Erasing the Canvas???
by
BubikolRamios
[February 09, 2026, 06:34:49 pm]
[SOLVED] Locate current r...
by
1HuntnMan
[February 09, 2026, 05:28:45 pm]
Dumping preprocessed work...
by
Чебурашка
[February 09, 2026, 04:27:58 pm]
[SOLVED] LPC & API
by
Petrus Vorster
[February 09, 2026, 03:01:32 pm]
Lazaris IDE v4.4 - extrem...
by
CM630
[February 09, 2026, 02:30:01 pm]
Keyboard hook - platform ...
by
n7800
[February 09, 2026, 01:49:51 pm]
[SOLVED] How to disable a...
by
Zvoni
[February 09, 2026, 11:50:40 am]
Free Pascal for a small e...
by
cdbc
[February 09, 2026, 11:35:12 am]
IStreams
by
cdbc
[February 09, 2026, 11:09:34 am]
I want to port my LDL pr...
by
JordanCpp
[February 09, 2026, 10:05:41 am]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] How to save a Graphic from a TPicture in the Clipboard (Linux problem)? (Read 3315 times)
Zvoni
Hero Member
Posts: 3244
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: 13350
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: 1061
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