Autor Beitrag
blackbirdXXX

ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1077
Erhaltene Danke: 1

Ubuntu Dapper

BeitragVerfasst: So 11.01.04 13:37 
Wenn ich einen Text in Winword schreibe und kopiere dann kann ich ihn in mein Tmemo normal einfügen. Kein Problem. Nur Word hat noch Formatierungen und die kugeln sicher auch im Clipboard rum. Wie kann ich diese mit ausgeben? Oder bei Mozilla oder IE kopiert er nicht nur Text sondern auch Bildadressen und Schriftarteinstellungen im Clipboard mit.

Diese möchte ich in ein TMemo einfügen. Geht das?

_________________
Klein, schwarz und ärgert Techniker? Jumper!
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: So 11.01.04 13:43 
Hallo

nimm ein Richedit. in einem Memo kannst du eh keine unterschiedliche Formatierungen machen.

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
blackbirdXXX Threadstarter

ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1077
Erhaltene Danke: 1

Ubuntu Dapper

BeitragVerfasst: So 11.01.04 14:04 
Ich will nicht nur die Formatierung sonder ich will wissen wie die Formatierung übermittelt wird.
z.B.: Bei HTML wird alles zwischen <b> und </b> Fett. Bei rtf schreibt man vorher einen Designkopf und dann schreibt man pro Zeile hin wie diese Zeile aussehen soll. Oder so ähnlich. Wie macht das jetzt aber Word, Mozilla, Excel...

_________________
Klein, schwarz und ärgert Techniker? Jumper!
Dolphi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Di 27.01.04 22:33 
Zitat:

Ich will nicht nur die Formatierung sonder ich will wissen wie die Formatierung übermittelt wird.


Folgendes hab ich aus der Delphi Hilfe:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
var

  MyHandle: THandle;
  TextPtr: PChar;
  MyString: string;
begin
  ClipBoard.Open;
try
  MyHandle := Clipboard.GetAsHandle(CF_TEXT);
  TextPtr := GlobalLock(MyHandle);
  MyString := StrPas(TextPtr);
  GlobalUnlock(MyHandle);
finally
  Clipboard.Close;
end;
end;