Re:help for TScrollBox
Quote
In article <6e8nqs$d...@forums.borland.com>, Zhang wrote:
> Who can tell me how to draw a line in the TScrollBox component. I want to
> use TCancas,
> but I don't know how to do it.
TScrollbox does not publish a Canvas property since it is not intended to
be used as a drawing surface. Drop a TPaintbox on the scrollbox, set its
Align property to alClient. The draw on the paintbox. The code for drawing
should go into a handler for the OnPaint event of the paintbox.
Canvas.Pen.Color := clBlack;
Canvas.MoveTo( 10,10);
Canvas.LineTo( 100, 100 );
Peter Below (TeamB) 100113.1...@compuserve.com)