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 to create sync applic...
by
Thaddy
[
Today
at 09:22:14 pm]
Assigning proc to event a...
by
PascalDragon
[
Today
at 09:16:09 pm]
Color Buttons
by
lainz
[
Today
at 09:14:49 pm]
Lazarus Pascal Keywords a...
by
PascalDragon
[
Today
at 09:11:42 pm]
how to make application r...
by
PascalDragon
[
Today
at 09:06:33 pm]
Generics as PUBLISHED imp...
by
PascalDragon
[
Today
at 09:04:43 pm]
FP crashes after running ...
by
Martin_fr
[
Today
at 09:03:42 pm]
Nested declarations insid...
by
440bx
[
Today
at 07:50:34 pm]
Random ?
by
Thaddy
[
Today
at 07:26:20 pm]
test if web site is valid
by
What I can do
[
Today
at 07:24:27 pm]
UnoLib - library in Pasca...
by
ackarwow
[
Today
at 07:08:06 pm]
file Blockread error
by
TBMan
[
Today
at 07:02:54 pm]
¿Hay alguna limitación en...
by
e_nigma
[
Today
at 06:27:03 pm]
Exploring FPC/Lazarus uni...
by
MarkMLl
[
Today
at 05:48:05 pm]
Web Pascal without JavaSc...
by
zendrael
[
Today
at 05:19:57 pm]
SDL2 image rotation Probl...
by
Pe3s
[
Today
at 05:07:24 pm]
MainMenu: How to use the ...
by
madref
[
Today
at 03:03:37 pm]
Why with allows assignmen...
by
Warfley
[
Today
at 02:49:58 pm]
How to combine data from ...
by
Thaddy
[
Today
at 02:30:11 pm]
SDL2: Runtime Error 216 o...
by
mischi
[
Today
at 02:11:35 pm]
Might have a menu bug in ...
by
cdbc
[
Today
at 01:46:12 pm]
Vulnerabilities lurking i...
by
tetrastes
[
Today
at 12:51:20 pm]
TSQLquery does not save a...
by
egsuh
[
Today
at 11:53:54 am]
Lazarus Release Candidate...
by
pleumann
[
Today
at 11:39:03 am]
How to validate ParamStr(...
by
Thaddy
[
Today
at 11:22:51 am]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] How to save a Graphic from a TPicture in the Clipboard (Linux problem)? (Read 1440 times)
Zvoni
Hero Member
Posts: 2782
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: 12513
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