Where to paint? lazarus / 10-Designer ---------------------------------------------------------------------- Harry · 2009-02-18 05:34 I tried to paint into the Canvas of a TPanel, but nothing shows up.  Putting a TPaintBox into the panel doesn't seem to change anything (nothing shows up in the paint box).  Can't you paint into a Panel? Cheers ---------------------------------------------------------------------- Vincent Snijders · 2009-02-18 11:07 Do you paint in the OnPaint event? ---------------------------------------------------------------------- Harry · 2009-02-18 17:23 Yes, I painten on the OnPaint event, but unfortunately on the OnPaint event of the TForm. Switching to the OnPaint event of the TPaintBox helps. Why does the object inspector show no OnPaint event for the TPanel?  Is there none?  Should I always use a TPaintBox if I want to paint into a TPanel? Cheers