U++ framework
Do not panic. Ask here before giving up.

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 Go to previous message
forlano is currently offline  forlano
Messages: 1221
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

 
Read Message
Read Message
Read Message
Previous Topic: EditField and the Enter Key[SOLVED]
Next Topic: About the beahaviour of FileSel fs.Type
Goto Forum:
  


Current Time: Sat Apr 25 08:43:36 GMT+2 2026

Total time taken to generate the page: 0.00471 seconds