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 » RichText,QTF,RTF... » Allow line-break after '-' sign within a word?
Re: Allow line-break after '-' sign within a word? [message #40474 is a reply to message #40448] Tue, 06 August 2013 19:21 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
Hello, Zsolt.
zsolt wrote on Fri, 02 August 2013 16:39

So is it possible to change line breaking somehow or is there a non printing character allowing line break within a word?

Or can I change the rendering code? Where can I find this line breaking logic in U++ code?

You could find "line breaking logic" for U++ RichText inside of RichPara::FormatLines method.
To allow line breaks for '-' character, it is possible to change (for your local copy of RichText package) following line of code:
		if(*s == ' ') {

to:
		if(*s == ' ' || *s == '-') {

The diff file attached, just in case.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Insert text data from file
Next Topic: Need help with setting RichEdit fonts in droplist [SOLVED]
Goto Forum:
  


Current Time: Tue May 14 21:41:05 CEST 2024

Total time taken to generate the page: 0.01726 seconds