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: 59119
- Sun Oct 28, 2012 8:10 pm
- Forum: Support
- Topic: How to add a new line when #13
- Replies: 19
- Views: 59119
- Sun Oct 28, 2012 7:28 pm
- Forum: Support
- Topic: How to add a new line when #13
- Replies: 19
- Views: 59119
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: 59119
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 lin...
- Sat Oct 27, 2012 3:50 pm
- Forum: Support
- Topic: How to add a new line when #13
- Replies: 19
- Views: 59119
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: 59119
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 i...
- Thu Oct 25, 2012 4:38 pm
- Forum: Support
- Topic: How to add a new line when #13
- Replies: 19
- Views: 59119
- Thu Oct 25, 2012 1:25 pm
- Forum: Support
- Topic: How to add a new line when #13
- Replies: 19
- Views: 59119
- Thu Oct 25, 2012 10:41 am
- Forum: Support
- Topic: How to add a new line when #13
- Replies: 19
- Views: 59119
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: 26550
- Sun Jan 31, 2010 6:23 pm
- Forum: Support
- Topic: DB ScalerichviewEdit: problems to export PDF in new version
- Replies: 7
- Views: 26550
- Sun Jan 31, 2010 9:51 am
- Forum: Support
- Topic: DB ScalerichviewEdit: problems to export PDF in new version
- Replies: 7
- Views: 26550
- Sat Jan 30, 2010 7:42 pm
- Forum: Support
- Topic: DB ScalerichviewEdit: problems to export PDF in new version
- Replies: 7
- Views: 26550
- Sat Jan 30, 2010 1:55 pm
- Forum: Support
- Topic: Picture and Table resize out of page border
- Replies: 9
- Views: 28001
- Sat Jan 30, 2010 1:50 pm
- Forum: Support
- Topic: Picture and Table resize out of page border
- Replies: 9
- Views: 28001