Recent

Author Topic: TabControl: Tabs with the same form but differente content, is it that way?  (Read 1131 times)

Jvan

  • Full Member
  • ***
  • Posts: 181
I thougth that TabControl showed the same form but allowing the user to fill the form with different content, isn't it? what is the correct way to use it?

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
TTabControl: same components for all tabs

TPageControl: different components on each tab
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/

Jvan

  • Full Member
  • ***
  • Posts: 181
But components have the same values on each tab, I thought the values could be different.

jamie

  • Hero Member
  • *****
  • Posts: 7526
But components have the same values on each tab, I thought the values could be different.
Well you thought wrong!  :)

Use the Tab events to update the values on the screen .

Its a process that you need to implement.
The only true wisdom is knowing you know nothing

Handoko

  • Hero Member
  • *****
  • Posts: 5515
  • My goal: build my own game engine using Lazarus
Its a process that you need to implement.

And that is not simple.

Alternatively, not related but this maybe is what you're looking for:
https://forum.lazarus.freepascal.org/index.php/topic,39769.msg274036.html#msg274036

 

TinyPortal © 2005-2018