Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-09

LCL: TPairSplitter <-> TSplitter

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vincent Snijders

Hi,

Delphi has a TSplitter component. The LCL hasn't, but the TPairSplitter looks a lot like it.

I have the following questions:
- What are the differences?
- Why doesn't the LCL have a TSplitter?
- If they are so similar, can the TPairSplitter be renamed to TSplitter?

Regards,
Vincent

Reply by email

Andrew Johnson
Delphi has a TSplitter component. The LCL hasn't, but the TPairSplitter looks a lot like it.

They serve the same type of purpose.

I have the following questions: - What are the differences?

A splitter has no children, it is placed between two controls aligned properly, and allows resizing between them at runtime, regardless its own size. It must have to controls aligned on each size to do anything.

A PairSplitter is a Special kind of control, with two panels, and it can only be usefull if the controls to split are on these panels, but it will still perform a split between those panel whether or not anything is on them. .

- Why doesn't the LCL have a TSplitter?

Probably because it is not compatible with the GTK way of handling this, win32 can be made to mimic gtk in terms of splitting, but the reverse is far more complicated. Not certain, but this what I think.

- If they are so similar, can the TPairSplitter be renamed to TSplitter?

No, because they aren't similar enough, they perform the same task but in a different way. naming it the same would lead to confusion of functionality and porting Delphi apps.

Andrew

Reply by email