Page 1 of 1

Multi line column header problem

Posted: Wed Feb 03, 2021 11:49 am
by zolifree
Hi Roger!

When a column in DCBROWSE has a multi line header, and has a SORT block, only the first line displayed in the header.
If I remove ther SORT block, it displays the header line correctly.

Code: Select all

DCBROWSECOL ELEMENT 1 HEADER 'File;Name' WIDTH 10 PARENT oBrowse ;
   SORT {||ASort(aDir,,,{|a,b|a[1]<b[1]})} DEFAULT TOOLTIP 'File Name'
I attached a test program, which display "File" in the header intead of the "File;name" in 2 lines.

Best regards,
Zoltan

Re: Multi line column header problem

Posted: Thu Feb 04, 2021 9:31 am
by zolifree
It works well with express 265, and not works from express 266.

Re: Multi line column header problem

Posted: Thu Feb 04, 2021 11:09 am
by rdonnay
It works well with express 265, and not works from express 266.
Try the attached file.
Copy to \exp20\source\dclipx folder and run build20.bat to rebuild dclipx.dll.

Re: Multi line column header problem

Posted: Thu Feb 04, 2021 2:54 pm
by zolifree
It works, but introduces other issues. There are many new parts in this prg file which is not compatible the other prg files I have here.
Theres is too many changes in the source code, I can't find which change responsible for this problem.
Please copy here the modified part of the code, so I can change that in my prg file.

Re: Multi line column header problem

Posted: Thu Feb 04, 2021 4:17 pm
by rdonnay

Code: Select all

WAS:

IF Empty(::sortBlock) .AND. !::SqlSort
  ::setHeaderCaption(::heading:cargo)
ENDIF


IS:

IF !::SqlSort
  ::setHeaderCaption(::heading:cargo)
ENDIF

Re: Multi line column header problem

Posted: Thu Feb 04, 2021 5:12 pm
by zolifree
Perfect, thank You!