|
From: Sanne S. <in...@sh...> - 2001-03-23 01:05:54
|
Hi, I am busy writing a wordwrap function, but I am stuck. Please read: >>>>>>>>>> Worwrap: Determines whether the edit control inserts SOFT carriage returns so text wraps at the right margin. property WordWrap: Boolean; Description Set WordWrap to True to make the edit control wrap text at the right margin so it fits in the client area. The wrapping is cosmetic only--the text does not include any return characters that were not explicitly entered. Set WordWrap to False to have the edit control show a separate line only where return characters were explicitly entered into the text. Note: There should be no use for a horizontal scroll bar if WordWrap is True. >>>>>>>> Ok, I need another ascii code, because I tried but both #13 or #10 results in a hard return. Another problem: if I insert either a #10 or #13, it results in a SynEdit box as a [] char. In TMemo and TRichEdit it does work. sorry for the english. Thanx. Regards Sheep --- Sheep Productions www.sheepproductions.com ----- Original Message ----- From: Michael Gade To: 'Sanne Schaap' ; spr...@bs... ; syn...@li... Sent: Thursday, March 22, 2001 4:28 PM Subject: RE: [Synedit-devel] Feature Request: WordWrap / TeX Highlighter >Does anyone knows what's the ascii code of a soft-return? What is a 'Soft' return ?? The ASCII value for 'Carrige Return' is 13 Pressing the 'Return' key actually makes 2 caracters. 1 'Carrige return' and 1 'Line Feed' (10) That would make 'return' == #13#10; Remember to discard that line feed if you don't use it. Med venlig hilsen / Best regards Michael Gade Developer eBiz A/S Brandts.com Store Kongensgade 23A DK-1264 Copenhagen K Tel.+45 7731 1900 Fax. +45 7731 2091 Mobile. +45 2947 2690 Mail : mg...@as... http://www.as-brandts.com/ebiz |