This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

Different row height in header.

edited May 2013 in LMD ElPack
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

  • 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)
  • I see the issue. Thank you for this observation, it's a bug and will be fixed.
Sign In or Register to comment.