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

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: 1796
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: Fri Apr 24 20:56:35 GMT+2 2026

Total time taken to generate the page: 0.00470 seconds