Author Topic: TTabControl vs TPageControl  (Read 19940 times)

anis2505

  • Full Member
  • ***
  • Posts: 201
TTabControl vs TPageControl
« on: November 10, 2012, 11:21:27 pm »
Hi there,

i was asking what's the difference between TTab control and TPage control.

what exactly TTab usefull for and what TPage usefull for ????

when should I use TTab instead of TPage and reverse ????

and Please don't answer me like this great philosophical answer  :D:

http://borland.newsgroups.archived.at/public.delphi.vcl.components.using.win32/200707/0707134947.html

Thanks
Dear Confucius you said {A picture is worth a thousand words}
I say {a good example is worth a thousand words}

Bart

  • Hero Member
  • *****
  • Posts: 5776
    • Bart en Mariska's Webstek
Re: TTabControl vs TPageControl
« Reply #1 on: November 10, 2012, 11:35:34 pm »
Well, I find that this "great philosophical answer" explains it allright....

Bart

anis2505

  • Full Member
  • ***
  • Posts: 201
Re: TTabControl vs TPageControl
« Reply #2 on: November 10, 2012, 11:38:49 pm »
Well, I find that this "great philosophical answer" explains it allright....

Bart

Do you think???? !!!! maybe  :D
Dear Confucius you said {A picture is worth a thousand words}
I say {a good example is worth a thousand words}

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: TTabControl vs TPageControl
« Reply #3 on: November 10, 2012, 11:41:04 pm »
I don't think that answer is philosophical  :).

Simply, TPageControl contains other components on each tab.
TTabControl has the same components on each tab.

TTabControl is for multi-tab interface, like web-browser or file-manager.

TPageControl can be used where you need other content on each tab, like some Options... dialogs or whatever.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

anis2505

  • Full Member
  • ***
  • Posts: 201
Re: TTabControl vs TPageControl
« Reply #4 on: November 10, 2012, 11:44:05 pm »
I don't think that answer is philosophical  :).

Simply, TPageControl contains other components on each tab.
TTabControl has the same components on each tab.

TTabControl is for multi-tab interface, like web-browser or file-manager.

TPageControl can be used where you need other content on each tab, like some Options... dialogs or whatever.

Great Thanks for the answer. now I can die in peace  :D

Thanks again
Dear Confucius you said {A picture is worth a thousand words}
I say {a good example is worth a thousand words}

Bart

  • Hero Member
  • *****
  • Posts: 5776
    • Bart en Mariska's Webstek
Re: TTabControl vs TPageControl
« Reply #5 on: November 11, 2012, 01:48:57 am »
TTabControl is for multi-tab interface, like web-browser or file-manager.

I actually use a TPageControl for that, as does the Lazarus IDE AFAIK.

Bart

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: TTabControl vs TPageControl
« Reply #6 on: November 11, 2012, 02:34:19 am »
It seems that Double Commander uses TCustomTabControl for each panel (and previously they used TNotebook).

@ ...as does the Lazarus IDE AFAIK.

Do you mean Component Palette or Source Editor ?

I use TPageControl for Options dialog, where you can switch pages by tabs OR tabs can be hidden and switching is done by associated TreeView (it looks like Lazarus Options but I don't know if Lazarus uses TPageControl too).


Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Bart

  • Hero Member
  • *****
  • Posts: 5776
    • Bart en Mariska's Webstek
Re: TTabControl vs TPageControl
« Reply #7 on: November 11, 2012, 12:54:05 pm »
@ ...as does the Lazarus IDE AFAIK.

Do you mean Component Palette or Source Editor ?

SE

Bart

Zoran

  • Hero Member
  • *****
  • Posts: 1994
    • http://wiki.lazarus.freepascal.org/User:Zoran
Swan, ZX Spectrum emulator https://github.com/zoran-vucenovic/swan

 

TinyPortal © 2005-2018