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... » Change proposal: line break in RichType / fieldparts
Change proposal: line break in RichType / fieldparts [message #57188] Mon, 07 June 2021 10:20 Go to next message
wqcmaster is currently offline  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?
Re: Change proposal: line break in RichType / fieldparts [message #57315 is a reply to message #57188] Sat, 10 July 2021 16:08 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
OK, I think this will not hurt anything... applied

Mirek
icon14.gif  Re: Change proposal: line break in RichType / fieldparts [message #57321 is a reply to message #57315] Mon, 12 July 2021 13:03 Go to previous message
wqcmaster is currently offline  wqcmaster
Messages: 37
Registered: March 2013
Member
That is nice,
thank you
Previous Topic: QTF Centered in ArrayCtrl header
Next Topic: RichTextView::GetData() Method
Goto Forum:
  


Current Time: Fri Apr 19 06:23:06 CEST 2024

Total time taken to generate the page: 0.03979 seconds