Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Different row height in header.

Hi,

Is it possible to set different row height for every row in TElXTree  header?
I try this

            ElXTree->HeaderRowCount = 2;
            //ElXTree->Header->RowHeight = 3*19;
            ElXTree->Header->LockHeight = false;
            ElXTree->Header->Rows[0]->Height = 3*19;
            ElXTree->Header->Rows[1]->Height = 19;

but it's not working.
Any help appreciated.

Comments

  • 4 Comments sorted by Votes Date Added
  • Hi,

    I just tried similar code in ElXTree MegaDemo. It works. 

    procedure TXTreeDm.MergeHeaderCells(const ATree: TElXtree);
    begin
      ATree.Header.Rows[0].Cell[0].Join(2, 1);
      ATree.Header.Rows[0].Cell[1].Join(1, 2);
      ATree.Header.Rows[0].Cell[3].Join(2, 1);
      ATree.Header.Rows[0].Cell[4].Join(2, 1);
      ATree.Header.Rows[0].Cell[5].Join(2, 1);
      ATree.Header.Rows[0].Height := 16;
      ATree.Header.Rows[1].Height := 40;
    end;
  • Hi,

    I've checked  this Mega demo. I add this two line to MergeHeaderCells event, and after i run application the height of both rows was the same but after I check twice checkbox "Merge header cells" this setting starts to work. So it is not work as one would expect.

    Package:   LMD ElPack 2013.3 (13-03-2013)
    IDE:       (Delphi/C++Builder XE)
    Platform:  Platform: Windows XP (Build: 2600, Dodatek Service Pack 3)
    Best regards,
    Grzegorz
  • I see the issue. Thank you for this observation, it's a bug and will be fixed.
Sign In or Register to comment.