[Lazarus] PageControl vs NoteBook vs TabControl
Graeme Geldenhuys
graemeg.lists at gmail.com
Mon Mar 8 13:43:56 CET 2010
Felipe Monteiro de Carvalho het geskryf:
> The correct TNotebook can be implemented purely in LCL code, so not
> that much work in maintaining it.
>
>> Rolled into one, they would reduce maintenance, increase stability (because
>> everybody use the same component).
>
> Only if you draw everything yourself like in fpgui. With the LCL
> design and the limitations of widgetsets this isn't true.
OK, so LCL should be able to reduce TPageControl, TNoteBook and TTabControl
to just two components. Not much of a saving, but their is still an advantage.
eg:
TPageControl - LCL wrapper around native tab widget.
TNotebook - 100% custom drawn using only LCL painting and supports the
option to hide pages and only display tabs. And do Border or
No Border pages etc. So this component could double as a
TTabControl too.
The TNoteBook could then be used in Lazarus IDE to implement more features
that will be handy for an IDE to have. eg: Tabs or right/left/top/bottom,
Close tab button on each tab, different tab looks (like Eclipse and Delphi
already does), etc... and guaranteed that it will work on all platforms.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
More information about the Lazarus
mailing list