Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-08 Thread Graeme Geldenhuys
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

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-08 Thread Felipe Monteiro de Carvalho
On Mon, Mar 8, 2010 at 3:40 AM, Graeme Geldenhuys wrote: > Well how hard can it no be to add a new "with borders" or "without borders" > property to the TNotebook. This minor detail still doesn't justify a > complete separate component. Except that because components are drawn by the widgetset, w

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-07 Thread Graeme Geldenhuys
Andreas Schneider het geskryf: > > Here's a problem: TNotebook is _not_ a tab-type component (well, actually it > shouldn't be a tab-type component). The Delphi implementation is more or > less just a page manager so you can have several layers on one form that you > can switch between. To me,

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-06 Thread George Lober
Graeme Geldenhuys wrote: On 5 March 2010 14:24, Felipe Monteiro de Carvalho wrote: I think it's a nice effort, but wouldn't it be better to improve the correct control (TPageControl) instead of making the wrong control better at what it isn't supposed to do? Wouldn't it be better to

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-06 Thread John
Graeme Geldenhuys wrote: On 5 March 2010 14:24, Felipe Monteiro de Carvalho wrote: I think it's a nice effort, but wouldn't it be better to improve the correct control (TPageControl) instead of making the wrong control better at what it isn't supposed to do? Wouldn't it

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-05 Thread Andreas Schneider
Am Freitag 05 März 2010 22:20:51 schrieb Graeme Geldenhuys: > Wouldn't it be better to simply have one tab-type component? All > efforts placed on only improving one component? Here's a problem: TNotebook is _not_ a tab-type component (well, actually it shouldn't be a tab-type component). The De

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-05 Thread Graeme Geldenhuys
On 5 March 2010 14:24, Felipe Monteiro de Carvalho wrote: > > I think it's a nice effort, but wouldn't it be better to improve the > correct control (TPageControl) instead of making the wrong control > better at what it isn't supposed to do? Wouldn't it be better to simply have one tab-type comp

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-05 Thread Felipe Monteiro de Carvalho
On Thu, Mar 4, 2010 at 3:06 PM, zeljko wrote: > Well, IDE source editor uses TNoteBook.Options (nboShowCloseButtons comes to > my mind), which isn't available on TPageControl. It should be easy to add that to TPageControl, I'll see if I have time later today. -- Felipe Monteiro de Carvalho --

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-05 Thread Felipe Monteiro de Carvalho
2010/3/4 Flávio Etrusco : > I've just noticed the although TabPosition isn't published in > TNotebook it's actually implemented in gtk and public. Is it > implemented in Windows? > If so, can it be published? And can the attached patch be accepted? ;-) I think it's a nice effort, but wouldn't it b

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-05 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Just continuing ... TNotebook is widely used as a TPageControl because first someone created the wrong TNotebook and only later TPageControl was added ... Not entirely. In the early days of lazarus, the original TNotebook was correct. Then someone thought, we

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-04 Thread cobines
2010/3/4 Flávio Etrusco : > I've just noticed the although TabPosition isn't published in > TNotebook it's actually implemented in gtk and public. Is it > implemented in Windows? It is working in Windows, GTK2, and QT4. -- cobines -- ___ Lazarus mailin

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-04 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: Delphi has also 3 components. 1. Pagecontrol is the Win95 version, 2. Notebook is the windows 3.1 component. 3. A tabcontrol is an entirely different beast: it has no pages, just the tabs. in Lazarus, this last control is simply buggy, it should be fixed. The secon

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-04 Thread Flávio Etrusco
On Thu, Mar 4, 2010 at 3:00 PM, Mattias Gaertner wrote: > On Thu, 4 Mar 2010 11:48:30 -0300 > Felipe Monteiro de Carvalho wrote: > >> Just continuing ... TNotebook is widely used as a TPageControl because >> first someone created the wrong TNotebook and only later TPageControl >> was added ... >>

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-04 Thread zeljko
On Thursday 04 March 2010 19:00, Mattias Gaertner wrote: > On Thu, 4 Mar 2010 11:48:30 -0300 > > Felipe Monteiro de Carvalho wrote: > > Just continuing ... TNotebook is widely used as a TPageControl because > > first someone created the wrong TNotebook and only later TPageControl > > was added ...

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-04 Thread Mattias Gaertner
On Thu, 4 Mar 2010 11:48:30 -0300 Felipe Monteiro de Carvalho wrote: > Just continuing ... TNotebook is widely used as a TPageControl because > first someone created the wrong TNotebook and only later TPageControl > was added ... > > The IDE itself uses TNotebook in lot's of places, while it sho

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-04 Thread Michael Van Canneyt
On Thu, 4 Mar 2010, Felipe Monteiro de Carvalho wrote: Just continuing ... TNotebook is widely used as a TPageControl because first someone created the wrong TNotebook and only later TPageControl was added ... The IDE itself uses TNotebook in lot's of places, while it should actually be using

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-04 Thread Felipe Monteiro de Carvalho
Just continuing ... TNotebook is widely used as a TPageControl because first someone created the wrong TNotebook and only later TPageControl was added ... The IDE itself uses TNotebook in lot's of places, while it should actually be using TPageControl. -- Felipe Monteiro de Carvalho --

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-04 Thread Felipe Monteiro de Carvalho
On Thu, Mar 4, 2010 at 11:09 AM, Michael Van Canneyt wrote: > in Lazarus, this last control is simply buggy, it should be fixed. The > second can be deleted, as lazarus never worked on Windows 3.1 Actually this is wrong. In Delphi the Notebook has no tabs and no border, so it is something complet

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-04 Thread Vladimir Zhirov
Michael Van Canneyt wrote: > 1. Pagecontrol is the Win95 version, > 2. Notebook is the windows 3.1 component. > 3. A tabcontrol is an entirely different beast: it has no pages, just > the tabs. > > in Lazarus, this last control is simply buggy, it should be fixed. The > second can be deleted, as

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-04 Thread zeljko
On Thursday 04 March 2010 15:09, Michael Van Canneyt wrote: > The > second can be deleted, as lazarus never worked on Windows 3.1 It cannot be deleted just like that since IDE source editor depends on TNotebook afaik. zeljko -- ___ Lazarus mailing lis

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-04 Thread Graeme Geldenhuys
Michael Van Canneyt het geskryf: > > Delphi has also 3 components. > > 1. Pagecontrol is the Win95 version, > 2. Notebook is the windows 3.1 component. > 3. A tabcontrol is an entirely different beast: it has no pages, just the > tabs. > > in Lazarus, this last control is simply buggy, it shou

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-04 Thread Michael Van Canneyt
On Thu, 4 Mar 2010, Graeme Geldenhuys wrote: Hi, I asked this question back in 2007 and asked myself the same question today. I read the answers given to me back then, but still doesn't really make sense. What's the actual difference between a PageControl, NoteBook control and a TabControl?

[Lazarus] PageControl vs NoteBook vs TabControl

2010-03-04 Thread Graeme Geldenhuys
Hi, I asked this question back in 2007 and asked myself the same question today. I read the answers given to me back then, but still doesn't really make sense. What's the actual difference between a PageControl, NoteBook control and a TabControl? Why does Lazarus need three different components