The component that I use has a OnKey event where keys pressed get trapped. If for instance the enter key is pressed, i can then add a #13#10 code to my string. I am currently using the following:
OnKey event
if AKeyNames.KeyChar = #13 then
AKey:= '#13#10';
The text then gets saved to the DB
Search found 49 matches
- Sun Oct 28, 2012 9:00 pm
- Forum: Support
- Topic: How to add a new line when #13
- Replies: 19
- Views: 60262
- Sun Oct 28, 2012 8:10 pm
- Forum: Support
- Topic: How to add a new line when #13
- Replies: 19
- Views: 60262
- Sun Oct 28, 2012 7:28 pm
- Forum: Support
- Topic: How to add a new line when #13
- Replies: 19
- Views: 60262
There is no need to send a sample application: Let's assume we have a memo with the text: This #13#10 is #13#10 a #13#10 test //This is the text that I obtained from my keylogger - notice, the text is without colons because the keylogger doesn't know where to add colons.. Now, if I have a TRichView ...
- Sun Oct 28, 2012 3:48 pm
- Forum: Support
- Topic: How to add a new line when #13
- Replies: 19
- Views: 60262
Hi Sergey When a user presses enter a #13#10 gets inserted. The problem is that the rest of the strings are not preceeded and ended with a colon. It seems that I will manually have to add colons. All I wanted to know is whether it is possible to replace all the #13#10 charcters with the relevant ...
- Sat Oct 27, 2012 3:50 pm
- Forum: Support
- Topic: How to add a new line when #13
- Replies: 19
- Views: 60262
Thanks Sergey and LS_M. It works but it still doesn't solve my problem. I'm writing a keylogger application that captures all keys entered. When a user presses enter, a #13#10 code is added to the text. The text gets saved to a Database and then transferred to trichview on request. Is there no event ...
- Fri Oct 26, 2012 7:57 am
- Forum: Support
- Topic: How to add a new line when #13
- Replies: 19
- Views: 60262
Hi Sergey In my previous post I meant AddTextNL and not AddNL. In any case, this does not work. If we do your suggestion: 1 TButton and 1 TRichview on a form. The OnClick event for the button is: RichView1.AddTextNL('This #13 is #13 a #13 test',8,0,0); RichView1.Format; The result in the TRichview ...
- Thu Oct 25, 2012 4:38 pm
- Forum: Support
- Topic: How to add a new line when #13
- Replies: 19
- Views: 60262
Hi Sergey I know that Addnl adds a new line but there is still a misunderstanding.. I allready have the text - the text is hard coded as follow: This #13 is #13 a #13 test. When I load the text from my DB field, I load it in one go. The text is then displayed as "This #13 is #13 a #13 test" and not ...
- Thu Oct 25, 2012 1:25 pm
- Forum: Support
- Topic: How to add a new line when #13
- Replies: 19
- Views: 60262
- Thu Oct 25, 2012 10:41 am
- Forum: Support
- Topic: How to add a new line when #13
- Replies: 19
- Views: 60262
How to add a new line when #13
Hi
I have a Database with memo fields which stores all my text. When a user requests a record I update TRichview from the DB (RichView.Add(Table.FieldByName('KeysCaptured').AsString,8);. Some of my text contains #13 characters. How can I add a blank line when TRichview encounters a #13.
Thank You
I have a Database with memo fields which stores all my text. When a user requests a record I update TRichview from the DB (RichView.Add(Table.FieldByName('KeysCaptured').AsString,8);. Some of my text contains #13 characters. How can I add a blank line when TRichview encounters a #13.
Thank You
- Sun Jan 31, 2010 9:38 pm
- Forum: Support
- Topic: DB ScalerichviewEdit: problems to export PDF in new version
- Replies: 7
- Views: 27062
- Sun Jan 31, 2010 6:23 pm
- Forum: Support
- Topic: DB ScalerichviewEdit: problems to export PDF in new version
- Replies: 7
- Views: 27062
Thanks for your help Crowbar I think i'm getting somewhere but it's still not working correctly. The text are rendered the entire page now e.g: a number "2" will show the entire page. If I apply your suggestion to the PaintMetafile demo in the Basic Demos folder, the results are correct but not with ...
- Sun Jan 31, 2010 9:51 am
- Forum: Support
- Topic: DB ScalerichviewEdit: problems to export PDF in new version
- Replies: 7
- Views: 27062
- Sat Jan 30, 2010 7:42 pm
- Forum: Support
- Topic: DB ScalerichviewEdit: problems to export PDF in new version
- Replies: 7
- Views: 27062
- Sat Jan 30, 2010 1:55 pm
- Forum: Support
- Topic: Picture and Table resize out of page border
- Replies: 9
- Views: 28710
- Sat Jan 30, 2010 1:50 pm
- Forum: Support
- Topic: Picture and Table resize out of page border
- Replies: 9
- Views: 28710