TVirtualTreeView Multi Sort

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #37614
    Stephane Senecal
    Participant

    I do my own sorting in a VirtualStringTree so I can sort on multiple column.

    How would you suggest I handle the painting of the arrows on the column headers?

    I tried TreeViewDistribsAdvancedHeaderDraw but, it disables the default drawing of the header by AlphaSkins.

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #57139
    Support
    Keymaster

    Hello, Stephane

    You have only one way, I think – draw alphaskins headers by your own, I can help.

    If you give me a demo-app with multi-sorting, I can add drawing of headers there.

    #57144
    Stephane Senecal
    Participant

    Here's a sample program for multi-column sorting.

    The drawing is done in the very last function and you can shift-click columns to add them to the sorting.

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #57164
    Support
    Keymaster

    Thank you

    What is version number of used VirtualStringTree?

    #57166
    Stephane Senecal
    Participant

    4.8.7 under Delphi 7

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #57171
    Support
    Keymaster

    Where can I download it? I have found the v4.7.0 only.

    #57172
    Stephane Senecal
    Participant

    It doesn't work with 4.7.0?

    They shouldn't be that different.

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #57173
    Support
    Keymaster

    Your demo can't be compiled with 4.7.0, declarations of events are different.

    I can change sources of the demo, of course, but you should change it back later.

    #57174
    Stephane Senecal
    Participant

    I'm ok with that. I only need to know how to paint headers.

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #57175
    Support
    Keymaster

    Look the attached file, added code has the “// Serge” comment

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.