Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi mehrere Controls ins Clipboard und wieder raus (https://www.delphipraxis.net/134028-mehrere-controls-ins-clipboard-und-wieder-raus.html)

oki 14. Mai 2009 08:44


mehrere Controls ins Clipboard und wieder raus
 
Hi Leute,

ich will mehrere eigene Controls in das Clipboard kopieren und an anderer Stelle wieder einfügen. Mit einem Control ist das recht einfach. Etwa so:
Delphi-Quellcode:
  Control := self.FSelectedItem; // hab ich mir an anderer Stelle gemerkt
  if Control = nil then
    Exit;
  Clipboard.SetComponent(Control); // ins Clipboard kopieren
wieder rausholen so:
Delphi-Quellcode:
var NewComponent : TComponent;
begin
  NewComponent := Clipboard.GetComponent(self, self);
  ...
Jetzt möchte ich aber gleich mehrere Komponenten mir einem Ruck in die Zwischenablage kopieren und wieder einfügen. Ich habe bis jetzt nichts gefunden, wo ich in form einer Liste oder ähnliches auf das Clipboard zugreifen und mir alle entsprechenden Komponenten rausholen kann.

Hat da jemand einen Tip?

Danke Euch schon mal und Gruß
oki

oki 15. Mai 2009 09:39

Re: mehrere Controls ins Clipboard und wieder raus
 
Push :oops:

Keiner ne' Idee :gruebel:

Gruß oki


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:52 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz