[Lazarus] TCustomNotebook (was: TListView review required)
Felipe Monteiro de Carvalho
felipemonteiro.carvalho at gmail.com
Mon Jul 4 17:49:40 CEST 2011
On Mon, Jul 4, 2011 at 4:53 PM, Hans-Peter Diettrich
<DrDiettrich1 at aol.com> wrote:
> Yes, I realized that misinterpretation already. If somebody is willing to
> update the widgetsets accordingly, I can do all the required LCL and IDE
> updates right now. (see below)
I already started that a long time ago, I already did the following steps:
1> Removed the old wrong TNotebook
2> Created a new correct TNotebook
3> Today I moved TCustomNotebook from ExtCtrls to ComCtrls
>> TCustomNotebook is almost the same as
>> TPageControl and it is a native control.
>
> That's not true, at least not for Win32. The native Win32 TabbedCtrl has no
> idea of pages, that's a Delphi/Lazarus addition that could have been
> implemented in a *derived* control.
I don't understand what you mean here. TPageControl is not implemented
like in Delphi, it does not inherit from the same control as
TTabControl in the LCL.
My statement is correct: In the LCL TCustomNotebook is the same as
TPageControl. Note that TPageControl is unrelated to TTabControl in
the LCL
TCustomNotebook does not exist in Delphi.
See: http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/ComCtrls_TPageControl.html
It seams that you are proposing to change that, I think the idea is
interresting, fixing the object hierarchy to be the same as in Delphi.
But be prepared for a lot of work =)
--
Felipe Monteiro de Carvalho
More information about the Lazarus
mailing list