Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 1071
Registered: March 2006
Location: Italy
Experienced 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: Thu Nov 14 07:58:41 CET 2019

Total time taken to generate the page: 0.01126 seconds