Multi line column header problem

This forum is for eXpress++ general support.
Post Reply
Message
Author
zolifree
Posts: 35
Joined: Sun Sep 19, 2010 6:55 am

Multi line column header problem

#1 Post 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
Attachments
test.zip
(963 Bytes) Downloaded 365 times

zolifree
Posts: 35
Joined: Sun Sep 19, 2010 6:55 am

Re: Multi line column header problem

#2 Post by zolifree »

It works well with express 265, and not works from express 266.

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Multi line column header problem

#3 Post 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.
Attachments
_dcxbrow.zip
(54.12 KiB) Downloaded 331 times
The eXpress train is coming - and it has more cars.

zolifree
Posts: 35
Joined: Sun Sep 19, 2010 6:55 am

Re: Multi line column header problem

#4 Post 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.

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Multi line column header problem

#5 Post by rdonnay »

Code: Select all

WAS:

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


IS:

IF !::SqlSort
  ::setHeaderCaption(::heading:cargo)
ENDIF
The eXpress train is coming - and it has more cars.

zolifree
Posts: 35
Joined: Sun Sep 19, 2010 6:55 am

Re: Multi line column header problem

#6 Post by zolifree »

Perfect, thank You!

Post Reply