Autor Beitrag
FriFra
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Di 29.07.03 18:09 
Kann man ein SynEdit irgendwie dazu bringen automatisch umzurechen (ohne #13) ?

_________________
Michael
(principal certified lotus professional - developer)
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Di 29.07.03 19:16 
es müsste ne eingenschaft geben wire WordWrap entwerde in den haupteigenschaften oder unter Options(in der komponenten im OI)

aber ich habe schon lange nicht mehr die synedit komponenten genutzt und dahere weiß ich es garnicht mehr so genau :(

_________________
MFG
Michael Springwald, "kann kein englisch...."
FriFra Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Di 29.07.03 19:20 
Wenn es WordWrap gäbe, hätte ich nicht gefragt...

_________________
Michael
(principal certified lotus professional - developer)
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Di 29.07.03 19:21 
Die einfachste Möglichkeit wäre es, die Zeilen auf eine bestimmte Länge zu prüfen und wenn sie länger sind #13 anzuhängen.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
FriFra Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Di 29.07.03 19:37 
Ich will aber kein #13 im Text haben :x ..,. es soll einfach umbrechen, ohne den String zu verfälschen...

_________________
Michael
(principal certified lotus professional - developer)
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Di 29.07.03 20:27 
Dann simuliere doch das Drücken der Enter-Taste.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
FriFra Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Di 29.07.03 20:34 
Du Witzbold! Dann hätte ich doch einen #13 im Text!!!

_________________
Michael
(principal certified lotus professional - developer)
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Di 29.07.03 20:47 
geht er nicht der länge nach ?
ich meine schon du hast so oder so keine #13 im text:)

_________________
MFG
Michael Springwald, "kann kein englisch...."
FriFra Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Di 29.07.03 21:38 
mimi hat folgendes geschrieben:
geht er nicht der länge nach ?
ich meine schon du hast so oder so keine #13 im text:)


hä?
Es gibt keine Eigenschaft WordWrap, deshalb frage ich ja... wenn ich etwas eintippe bleibe ich immer in der aktuellen Zeile, es sei denn ich drücke Enter, aber ich will kein Enter drücken müssen, da mir dies den Quellcode versaut. Ich will einfach wie in einem Memo (WordWrap=True, WantReturns=False) einen Text runterschreiben können, wenn ich einen echten Umbruch will, dann kann ich ja Enter Drücken... normaler Text soll aber einfach so umbrechen...

_________________
Michael
(principal certified lotus professional - developer)
Taladan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 88


Delphi 2005 Personal
BeitragVerfasst: Mi 30.07.03 09:57 
Wenn du dann deinen String wieder ausließt, dann Streiche doch einfach wieder die #13. Dann haste auch kein Problem damit :wink:

is zwar ein klacks mehr arbeit, aber dann haste deinen Unverfälschten string OHNE #13 :D

Für das echte Enter setzte dann ein nicht sichtbares Zeichen (falls es sowas in Delphi gibt) dabei und schon haste deine möglichkeit, echte #13 von eingeschobenen zu unterscheiden.
FriFra Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Mi 30.07.03 21:42 
Wenn ich WordWrap mit #13 simuliere ist das ganze Synedit unbrauchbar! Was meinst Du, was das für ein "Buchstabengewusel" gibt, wenn man irgendwo im Text etwas ändert und die entspr Funktion nun hingeht und alle eingefügten #13 rauslöscht und an die nun neuen Positionen verschiebt... Ausserdem würde man bei längeren Texten eine deutliche Anschlägverzögerung bei der Texteingabe bemerken.

Es muss doch noch einen anderen Ansatz geben... Hat nicht eventuell TMemo bzw. TRichedit den gleichen Vorfahren, bzw. ist sogar der Vorfahre von SynEdit? Dann müsste man es doch irgendwie hinbekommen auch SynEdit dieses Verhalten beizubringen...

_________________
Michael
(principal certified lotus professional - developer)
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Do 31.07.03 07:57 
TMemo wird abgeleitet von TCustomMemo
TRichEdit wird abgeleitet von TCustomRichEdit und dies von TCustomMemo.

TSynEdit wird von TCustomSynEdit abgeleitet, dies von TCustomControl, dies von TWinControl, dies von TControl und dies von TComponent.
TSynMemo wird von TCustomSynMemo abgeleitet und dies von TCustomSynEdit.

Also sind da keine direkten Übereinstimmungen.

WordWrap ist eine Property in TMemo und in TRichEdit.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.