Stretching CheckBox
In a TMasterData band I have 5 textual columns (realised with Labels) and 2 columns with ticks (check boxes).
I have set the property STRETCHED of the band to TRUE, also StretchMode of each Label is set to smMaxHeight.
But there is no such property for the TfrxCheckBoxView.
The issue is more evident because labels have a frame on all four sides.
What can I do to have aligned borders for each cell in a row ?
EDIT:
I found the answer - using Band.OnAfterCalcHeight event.
The checkbox image gets scaled - but this is a less undesirable issue than misaligned cell borders.
I have set the property STRETCHED of the band to TRUE, also StretchMode of each Label is set to smMaxHeight.
But there is no such property for the TfrxCheckBoxView.
The issue is more evident because labels have a frame on all four sides.
What can I do to have aligned borders for each cell in a row ?
EDIT:
I found the answer - using Band.OnAfterCalcHeight event.
The checkbox image gets scaled - but this is a less undesirable issue than misaligned cell borders.
procedure MasterData1OnAfterCalcHeight(Sender: TfrxComponent);
begin
  CheckBox1.Height := MasterData1.Height;
  CheckBox2.Height := MasterData1.Height;                                                                               Â
end;
Comments