Hi!
I have a problem with the OnPaint event using a sPanel.
I am deriving my own class TmyPanel from TsPanel.
In the constructor of TmyPanel I have a line like:
CODE
self.OnPaint := self.MyPaintCode;
With this line of code the panel no longer redraws on resizing.
I tracked down the problem to sPanel (line 192 in v6.47):
CODE
else if Assigned(FOnPaint) then FOnPaint(Self, Canvas) else begin
So assigning MyPaintCode to OnPaint will prevent the code to draw the panel from being executed.
Cheers,
remsi