Autor Beitrag
Crowbar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 180

WinXP, SP2
D6 Enterprise
BeitragVerfasst: Sa 17.06.06 20:55 
Hi,
ich definiere für meinen RichEdit einen Rand:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
...
Rect.Left :=200;          { linker Rand  }
Rect.Top  :=150;          { oberer Rand  }
Rect.Right:=200;          { rechter Rand }
SendMessage(RichEdit.Handle,EM_SETRECT,0,LongInt(@Rect));
RichEdit.Refresh;
...

Dies funktioniert auch wunderbar!
Nun ist mir aber folgendes aufgefallen. Wenn ich mein Projekt mit der Compiler-Option "Mit Debug-DCUs" kompiliere, ist alles wie "gewünscht". Kompiliere ich aber mein Projekt ohne der Compiler-Option "Mit Debug-DCUs", wird mein Rand einfach ignoriert, d.h. die Schrift fängt ganz links und oben an.

Weiß jemand wieso das so ist? Oder wie man trotz ohne der Compiler-Option "Mit Debug-DCUs", den gleichen Effekt erzielt wie mit?

Cu
Crowbar