[Lazarus] Components

Antonio Fortuny a.fortuny at sitasoftware.lu
Mon Jan 14 14:24:27 CET 2013

Hi All.

I'm building new components. I've made my first one, installed it and 
used it. So far so good.
I'm trying not to give to the component default sizes and I can(t figure 
out how this can be done. To be more precise, I inherit from a 
TCustomPanel to which I wold like to add some more properties and 
methods. I'd like also to give default sizes which are far from those of 
a TCustomPanel.
I've used
   Height := 25;
   Width := 75;
in the overridden creator and
   with GetControlClassDefaultSize do
     SetInitialBounds(0, 0, 75, 25);
without success. My new component works as expected anyway.

Did I miss something ?


More information about the Lazarus mailing list