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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Painting on a control - 3...
by
TRon
[
Today
at 06:38:20 am]
Exclude Jedi Code Formatt...
by
JuhaManninen
[
Today
at 06:13:54 am]
Drawing with psInsidefram...
by
Jonny
[
Today
at 03:37:23 am]
Result not being set in c...
by
Schmitty2005
[
Today
at 02:39:03 am]
UK's Online Safety Act
by
Joanna from IRC
[
Today
at 01:38:37 am]
Return nil/null of data t...
by
VisualLab
[
Today
at 12:36:54 am]
How C++ class multiple in...
by
VisualLab
[
Today
at 12:24:05 am]
Preparing FPC 3.2.4, poin...
by
PascalDragon
[January 23, 2025, 10:34:10 pm]
Generic function speciali...
by
PascalDragon
[January 23, 2025, 10:17:13 pm]
Resolving procedure symbo...
by
440bx
[January 23, 2025, 10:16:17 pm]
Assembler window colors
by
Kornelius
[January 23, 2025, 10:11:46 pm]
laz.virtualtrees.pas not ...
by
kapibara
[January 23, 2025, 10:07:25 pm]
Does unit recompilation r...
by
Fred vS
[January 23, 2025, 10:00:54 pm]
Out ...: Array of Somethi...
by
440bx
[January 23, 2025, 09:08:57 pm]
Generic methods inside a ...
by
PascalDragon
[January 23, 2025, 09:03:58 pm]
FPHTTPClient and SSL not ...
by
geraldholdsworth
[January 23, 2025, 08:44:33 pm]
Compiling 2 dependent pac...
by
Sergey Tkachenko
[January 23, 2025, 08:36:59 pm]
[SOLVED] Application.Proc...
by
erol
[January 23, 2025, 07:46:48 pm]
Timer difference in Linux...
by
Thaddy
[January 23, 2025, 06:51:31 pm]
مشكلة في التقارير
by
nouzi
[January 23, 2025, 06:28:58 pm]
Migrate vb.net to Lazarus...
by
Packs
[January 23, 2025, 06:16:35 pm]
Looking For Lazarus Tutor...
by
NobleStar
[January 23, 2025, 04:13:44 pm]
Getting format error load...
by
n7800
[January 23, 2025, 04:04:34 pm]
Making sense of pparser, ...
by
JernejL
[January 23, 2025, 03:16:26 pm]
No access to the wiki
by
Marc
[January 23, 2025, 02:52:43 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] How to save a Graphic from a TPicture in the Clipboard (Linux problem)? (Read 1629 times)
Zvoni
Hero Member
Posts: 2798
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: 12527
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: 891
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