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 #40450 is a reply to message #40448] Sat, 03 August 2013 08:38 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi zsolt,

If you talk about DocEdit, then the responsible code is in DocEdit::Format(const WString& text) const, in CtrlLib/DocEdit.cpp.

I think that you'd just need to add check for '-' in this part:
		if(*s == ' ' || *s == '\t') {
			space = s;
			spacex = x + cw;
			*s = ' ';
		}

I did not try it, but it should be quite straightforward Wink

Best regards,
Honza
 
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: Mon Apr 29 02:51:02 CEST 2024

Total time taken to generate the page: 0.02178 seconds