Stretch problem
I'm having a problem with some BorderComps I've created. These
components display borders by creating a TppDrawImage DrawCommand.
The problem is with the strech property. When the component stretches,
the text is displayed corretly but not the TppDrawImage DrawCommand is
not resized. It keeps the same height as designed.
I've override the CalcSpaceUsed to add the to add the following lines in it:
inherited;
SpaceUsed := SpaceUsed + TopSpacing + BottomSpacing;
The DetailBand stretches to the appropriate height but the component
doesn't.
Is there something I'm missing?
Thanks
Daniel
components display borders by creating a TppDrawImage DrawCommand.
The problem is with the strech property. When the component stretches,
the text is displayed corretly but not the TppDrawImage DrawCommand is
not resized. It keeps the same height as designed.
I've override the CalcSpaceUsed to add the to add the following lines in it:
inherited;
SpaceUsed := SpaceUsed + TopSpacing + BottomSpacing;
The DetailBand stretches to the appropriate height but the component
doesn't.
Is there something I'm missing?
Thanks
Daniel
This discussion has been closed.
Comments
component to resize the draw command's Height and Width properties. Typecast
the aDrawCommand parameter to be a TppDrawImage.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com