[Lazarus] TCustomControl.Autosize issue

Krzysztof dibo20 at wp.pl
Mon Dec 10 22:49:05 CET 2012


Hi,

I have own control TMyPanel which inherit from TCustomControl instead of
TCustomPanel (because I don't want add ExtCtrls unit). My panel has the
same flags and options like TCustomPanel, but Autosize doesn't work like in
normal panel. My panel don't account child controls and I can't find
code responsible for that in TCustomPanel. Any tips?

BTW: Why TCustomPanel is in ExtCtrls unit? I think that this important
control which is the base for many other controls, should be in StdCtrls
(it is on standard palette). Reason is delphi compability?

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20121210/185a36bf/attachment-0002.html>


More information about the Lazarus mailing list