change the row header width in cross-tab



Hi there! I'm generating a cross-tab report from a ClienDataSet(Delphi7) and i don't know how to manipulate the width of the row header. It seem that the width sets automaticly. Ok, thnx

Comments

  • edited 8:26AM
    In script code (Cross1OnCalcWidth - Event):
    procedure Cross1OnCalcWidth(ColumnIndex: Integer; ColumnValues: Variant; var Width: Extended);
    begin
      if ColumnIndex = 1 then
      Width:= 100
      else
      Width:=150;    
    end;
    
  • edited 8:26AM

    That's a script for manipulation of the cell width(ColumnIndex=0-first column,1-second collumn etc)..What i need is something that will change the width of the Row header, not a cell...i can't access the row header withe the script above
  • edited 8:26AM
    Ok, i found out..There is a property on the DBCross component: MaxWidth, MinWidth..
    With MAxWidth one can fix the width of the row header

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.