Autor Beitrag
superchatti
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 296

Win XP, Red Hat Linux 7.3
Delphi 6 PE
BeitragVerfasst: Di 14.10.03 20:49 
Wenn ich jetzt in einer Memo stehen habe:

"Guten Tag"

oder sowas wie setze ich das nach unicode?

_________________
mfG Superchatti
AndyB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1173
Erhaltene Danke: 14


RAD Studio XE2
BeitragVerfasst: Di 14.10.03 21:18 
Die Memo-Komponente von Windows, die durch das TMemo gekapselt wird unterstützt nur ANSI. Wenn du Unicode haben willst, musst du die Fensterplasste "EDITW" (oder so ähnlich) erstellen. Das hat aber bereits jemand gemacht und als TNT Komponenten ins Internet gestellt.

Wenn du aber wissen willst, wie du aus einem ANSI String einen Unicode String machen kannst:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
var
  A: string;
  W: WideString;
begin
  A := Memo1.Lines.Text;
  W := A; // compiler magic nimmt die Umwandlung vor
end;

_________________
Ist Zeit wirklich Geld?
Bernhard Geyer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 721
Erhaltene Danke: 3



BeitragVerfasst: Sa 18.10.03 13:36 
Eine andere Möglichkeit wären die ElPack-Komponenten(www.lmdinnovative.com/products/lmdelpack/). Diese funktionieren auch unter Win9x/ME und haben noch folgende Vorteile:

- XP-Themes für alle Controls
- Erweitertes Contols wie Tree, Grids, ...
- In eingeschränkten Umfang auch für Kylix/Linux verfügbar