Sign in Join

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

Mailing lists / lazarus / 2011-11

New TTabControl

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Felipe Monteiro de Carvalho

Hello,

I just wrote a new implementation for TTabControl to fix the control hierarchy. I expect it to be 100% backwards compatible and at the same time have the correct class hierarchy.

The implementation itself remains basically the same, it is just adapted to the new position which it occupies in the hierarchy. The control does not have its own WS implementation, but instead it relies on TCustomTabControl and on Themes.

People interrested in this control please test by adding -dLCL_NEW_TABCONTROL to LCLBase. Then TTabControl will be replaced with the new version.

Felipe Monteiro de Carvalho

Reply by email

Zaher Dirkey
to Felipe Monteiro de Carvalho

On Wed, Nov 2, 2011 at 3:21 PM, Felipe Monteiro de Carvalho <

Show quoted text 5 lines
wrote: The control does not have its own WS implementation

TCustomTabControl -> TPageControl
TCustomControl -> TCustomControl

Before look at the code, is that mean it is native (not depend on the system) control?

Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111103/29d7e0a9/attachment.html>

Reply by email

Felipe Monteiro de Carvalho
to Zaher Dirkey

2011/11/3 Zaher Dirkey :

Show quoted text 5 lines
TCustomTabControl -> TPageControl TCustomControl -> TCustomControl Before look at the code, is that mean it is native (not depend on the system) control?

Your text has some problems: "TCustomControl -> TCustomControl" and then you define native with its inverse.

But answering your question, it is native, but does not have its own WS implementation. It puts a TPageControl inside it to obtain the desired behavior instead. It was already like that before my change.

also note the ifdefs, half is the old version and half is the new one.

Felipe Monteiro de Carvalho

Reply by email