I want to paint the background of a TWebScrollBox myself (draw a grid). When I overwrite the "Paint" procedure in my component "TMyBox= class(TWebScrollBox)" the canvas proptery is nill. Is there a way to use the canvas property of TWebScrollBox?
iRect : TRect;
Canvas.BeginScene; // <-- Not working
Canvas.Brush.Color := clMoneyGreen;
iRect := Rect(-1,-1,Width,Height);
Draw a grid