Home » U++ Library support » LineEdit, EditFields, DocEdit » How to print the selected text in a LineEdit
How to print the selected text in a LineEdit [message #3598] |
Mon, 05 June 2006 15:54 |
|
forlano
Messages: 1202 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
Hello,
the procedure it is quite obvious:
1) select the text inside the LineEdit;
2) get the selected string with:
String text = editor.GetSelection();
3) pass the string text to Report as discussed in another thread in this forum.
The problem: the selected text doens't contain the newline (\n) char. This means that you loose the format and the vertical alignment.
Any idea how to grab the text but preserving the newline char if it is present?
Luigi
[Updated on: Mon, 05 June 2006 15:55] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 19:24:19 CEST 2024
Total time taken to generate the page: 0.03066 seconds
|