Einzelnen Beitrag anzeigen

Benutzerbild von MacGuyver
MacGuyver

Registriert seit: 9. Sep 2003
Ort: Wildeshausen
293 Beiträge
 
Turbo Delphi für Win32
 
#2

Re: Clipboard und Rich Text Format

  Alt 4. Feb 2010, 21:38
Moin auch

Das brauchst du so nicht. Am Einfachsten nimmst du eine globale Variable und rufst RegisterClipboardFormat aus Windows.pas auf.

Auszug aus der Onlinehilfe
Zitat:
The RegisterClipboardFormat function registers a new clipboard format. This format can then be used as a valid clipboard format.

If a registered format with the specified name already exists, a new format is not registered and the return value identifies the existing format. This enables more than one application to copy and paste data using the same registered clipboard format. Note that the format name comparison is case-insensitive.
Und jetzt hast du quasi deine "Konstante". Wenn dein Programm vor allen anderen Anwendungen schon das Format registriert, nehmen die anderen den Wert, den dein Programm vorgibt.
Englisch eine Weltsprache? Zu kompliziert und der nahe Osten würde Englisch als Pflichtweltsprache nicht akzeptieren.
IDO wäre genau das Richtige: http://forum.idolinguo.de/index.php oder www.idolinguo.de
  Mit Zitat antworten Zitat