[lazarus] TNotebook vs TTabbedNotebook
Marc Weustink
weus at quicknet.nl
Sun Jan 9 09:30:46 EST 2000
Hi,
Since the TNotebook and TTabbedNotebook are on the win31 page I didn't
concern much about them, but here some thoughts. The reason why Borland put
them on this page is IMO only for backward compatibility. Most of them have
a good and usable counter part. So in daily development I don't use them
(except for TNoteBook, I havn't found a replacement).
In Delphi 4 (& 3 & 2) TNotebook is a decendant of TCustomControl and
TTabbedNotebook a decendant of TCustomTabControl. Since we are trying to be
Delphi compatible I think we should do the same. So TNotebook shoud be just
a notebook whithout tabs, a plain control with pages. TCustomNotebook
shouldn't be used anymore and TTabbedNotebook is a decendant of
TCustomTabControl.
This brings me to my feeling of the win31 beeing a compatabiliti page, I
think that in the IDE develompment we should prefer the use of the
TPageControl instead of TTabbedNotebook.
Marc
At 15:55 08-01-2000 -0800, Curtis wrote:
>
>On 08-Jan-2000 d0hb0y wrote:
>> Couldn't TNotebook be a subclass of TTabbedNotebook where the default
value
>> of "showtabs" was set to false? That way we get the best of both worlds I
>> would think.
>
>They are both a subclass of TCustomNotebook which contains all the notebook
>functionality.
>
>>
>> I suppose it could be reversed such that TNotebook is the base class and
>> TTabbedNotebook is just TNotebook with showtabs set to true :)
>
>This is basically how it was. They both inherited from TCustomNotebook which
>contained all the functionality of the notebook. The only difference was that
>the TNotebook set the tabs to false and TTabbedNotebook set them to true. I
>think there may be some additional properties that were also different, but I
>don't remember for certain.
>
>It really doesn't make much sense to have two of them to do almost the same
>thing. It would be better to have just TNotebook with a TabsVisible property
>that allows you to set it to true or false and turn on and off tabs. But
if we
>don't have a TTabbedNotebook, then every Delphi program that uses it will
>have to be converted to use TNotebook and the TabsVisible property. We could
>easily do this in Lazarus as long as we remember that it must be done.
>
>Between the holidays and me completely rebuilding all my computers (upgrading
>them all to faster processors and more RAM), I haven't had any time to
work on
>Lazarus. But things are getting back to normal again and I should start
having
>some time again. I am planning to make up a web page that explains what needs
>to be changed when converting from Delphi to FPC/Lazarus. Maybe we can just
>keep the single TNotebook and I will add that to the page as something that
>must be converted.
>
>
>Curtis
>
>_________________________________________________________________
> To unsubscribe: mail lazarus-request at miraclec.com with
> "unsubscribe" as the Subject
> archives at http://www.miraclec.com/list_archives/lazarus
>
More information about the Lazarus
mailing list