Home » U++ Library support » RichText,QTF,RTF... » Change proposal: line break in RichType / fieldparts
Change proposal: line break in RichType / fieldparts [message #57188] |
Mon, 07 June 2021 10:20 |
wqcmaster
Messages: 37 Registered: March 2013
|
Member |
|
|
Hello,
I would like to enable a line break in the field parts. This would make the use of a Field / RichTypeField much greater. E.g. ready-made text passages (At least in our operational scenario).
For this purpose I have the function:
RichPara :: Lines RichPara :: FormatLines (int acx) const {...}
made the following change:
(from about line 83 in the function)
Orginal:
if(cx + *w > rcx && s > text ||
*s == '\t' && (t.align == ALIGN_RIGHT ? t.pos - format.lm > rcx
: t.pos - format.lm >= rcx)) {
New:
if(*s == '\n' || // add dagobert Dez 2016 -> fieldparts with newline
cx + *w > rcx && s > text ||
*s == '\t' && (t.align == ALIGN_RIGHT ? t.pos - format.lm > rcx
: t.pos - format.lm >= rcx))
{
if (*s == '\n') // add dagobert Dez 2016 -> fieldparts with newline
space = NULL; // add dagobert Dez 2016 -> fieldparts with newline
Does something speak against this proposed amendment?
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 19 06:23:06 CEST 2024
Total time taken to generate the page: 0.03979 seconds
|