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
How do you maintain your ...
by
440bx
[
Today
at 07:45:59 pm]
IContainers
by
cdbc
[
Today
at 07:28:18 pm]
fpc trunk:I can't build i...
by
zoltanleo
[
Today
at 07:09:08 pm]
Loading TIFF Files in Bgr...
by
wp
[
Today
at 05:51:54 pm]
Does not suggest function...
by
WooBean
[
Today
at 05:40:56 pm]
[SOLVED] using TForm.OnPa...
by
Remy Lebeau
[
Today
at 05:34:54 pm]
Minor Q: HowTo use 'Debug...
by
Martin_fr
[
Today
at 05:34:52 pm]
My first "tool" written w...
by
TBMan
[
Today
at 05:28:10 pm]
No access to the wiki
by
Thaddy
[
Today
at 04:55:31 pm]
UK's Online Safety Act
by
LV
[
Today
at 04:54:10 pm]
Resolving procedure symbo...
by
TCH
[
Today
at 04:53:22 pm]
Error 403 downloading wit...
by
Thaddy
[
Today
at 03:29:23 pm]
Preparing FPC 3.2.4, poin...
by
Thaddy
[
Today
at 02:32:36 pm]
Select cell in listview /...
by
Jonny
[
Today
at 02:32:19 pm]
Post your artwork made fr...
by
circular
[
Today
at 12:41:24 pm]
[SOLVED] SetPart ?
by
circular
[
Today
at 12:28:21 pm]
Does unit recompilation r...
by
cdbc
[
Today
at 11:48:20 am]
Compile on multiple distr...
by
dbannon
[
Today
at 09:28:37 am]
Intricate LSystem Snowfla...
by
Boleeman
[
Today
at 07:59:07 am]
D2Bridge Framework for La...
by
Thaddy
[
Today
at 06:39:50 am]
[SOLVED] How to add new ...
by
eolandro
[
Today
at 03:39:09 am]
BGRA Controls
by
lainz
[
Today
at 03:22:52 am]
color for selected cells
by
kjteng
[
Today
at 02:50:42 am]
SQL update statement and ...
by
silvercoder70
[January 20, 2025, 10:52:49 pm]
Nested declarations insid...
by
PascalDragon
[January 20, 2025, 10:33:14 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] How to save a Graphic from a TPicture in the Clipboard (Linux problem)? (Read 1549 times)
Zvoni
Hero Member
Posts: 2795
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: 12525
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