Is there some reason, other than for Delphi compatibility, that the MainForm of an application must descend from TForm, rather than allowing other TCustomForm derived forms?
I was writing some custom form modules and was surprised that they cannot be made at the first form in an application. Also I thought I submitted a patch for this a year ago, but TCustomForm.PaintWindow still prevents a form from doing any painting while in design mode. The simple fix is: Paint; if Designer <> nil then Designer.PaintGrid; Rather than as it is now: if Designer <> nil then Designer.PaintGrid else Paint;
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus