[lazarus] LCL: TNotebook pages autosize

Micha Nelissen M.Nelissen at student.tue.nl
Thu Jul 24 03:42:23 EDT 2003


Mattias Gaertner wrote:

> On Wed, 23 Jul 2003 22:07:01 +0200
> Micha Nelissen <M.Nelissen at student.tue.nl> wrote:
> 
> 
>>Mattias Gaertner wrote:
>>
>>
>>>On Mon, 07 Jul 2003 16:42:57 +0200
>>>Micha Nelissen <M.Nelissen at student.tue.nl> wrote:
>>>
>>
>>  >>Currently in the win32 implementation, notebook pages stay
>>
>>>>the same size.
>>>
>>>
>>>It must be done, by the interface, because the VCL/LCL has no mechanism
>>>to let all childs fill up the client area and overlapp each other.
>>
>>If I look at the delphi VCL then it contains the line
>>
>>Align := alClient;
>>
>>in TTabSheet.Create constructor. 
> 
> 
> First of all: TTabSheet <> TPage.
> TTabSheet and TPageControl needs to be implemented. It is very similar to
> TNoteBook and TPage, so we should try to share as much code as possible.

Can you explain the differences?

> 
> Now to "Align := alClient;":
> This was not yet possible, because the TPage is a special widget under gtk.
...

I see.

>>As a side note: if i 
>>create two groupboxes on a form, both with align:=alClient, then they 
>>are both as big as the client area of the form, thus overlapping.
> 
> 
> This should be discussed separately..

Hmm. I was describing win32-delphi-vcl behaviour (which we are trying to 
imitate AFAIK), what do you have in mind. Or do you rather want it in a 
new topic?

Micha.







More information about the Lazarus mailing list