Home Component Writing

Stretch problem

edited May 2003 in Component Writing
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

Comments

This discussion has been closed.