Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi TabControl Tab unsichtbar machen (https://www.delphipraxis.net/63896-tabcontrol-tab-unsichtbar-machen.html)

DelphiAndreas 24. Feb 2006 08:18


TabControl Tab unsichtbar machen
 
Hallo,

weiß jemand wie ich bei einem TabControl ein Tab unsichtbar machen kann? Also ohne es zu löschen, das würde glaube ich zu kompliziert mit der Indizierung werden.
Notfalls ginge es auch mit gesperrten Tabs, da weiß ich aber auch nicht wie das geht :gruebel:

Gruß
Andreas

Klaus01 24. Feb 2006 08:23

Re: TabControl Tab unsichtbar machen
 
TabSheet1.TabVisible:=false; läßt den Registerreiter verschwinden
TabSheet1.Visible:=false; läßt die Registerreiter verschwinden.

Grüße
Klaus

[edit] sorry, ich sollte wohl erst richtig lesen dann schreiben [/edit]

DelphiAndreas 24. Feb 2006 08:25

Re: TabControl Tab unsichtbar machen
 
Delphi-Quellcode:
tabControl.tabvisible := FALSE
gibt es bei mir nicht :( sprechen wir beide vom TTabControl?

EDIT: TabSheet?

SirThornberry 24. Feb 2006 08:28

Re: TabControl Tab unsichtbar machen
 
@DelphiAndreas: Am besten du trägst im Profil mal eine welche Delphiversion du hast. Ansonsten können wir nur Vermutungen anstellen ob es bei dir wirklich nicht existiert oder ob du es einfach übersiehst.

DelphiAndreas 24. Feb 2006 08:34

Re: TabControl Tab unsichtbar machen
 
achja... so, jetzt müsste meine Version erscheinen, falls nicht: Delphi2006 Professional

Aber wie gesagt, ich hab kein TabSheet sondern ein TabControl, das ist doch was anderes, oder? Fand das bloß interessanter, auch wenn man da ne Menge selbst machen muss :gruebel: :mrgreen:

Gruß
Andreas

Klaus01 24. Feb 2006 08:37

Re: TabControl Tab unsichtbar machen
 
Hallo Andreas,

aus der Hilfe von Delphi 6:

Zitat:

Description

Use TTabControl to add a control with multiple tab settings to a form. Unlike a page control,
TTabControl is not made up of several pages that contain different controls. Instead,
TTabControl is a single object. When the current tab changes, the tab control
must directly update its contents to reflect the change in an OnChange event handler.

Disabling a TTabControl object disables all tabs because it is one control.
To disable individual tabs, use TPageControl and disable the individual TTabSheet controls that represent the pages.
ich hatte vorher von TPageControl gesprochen, dort kann jede Seite (TabSheet) sichtbar oder unsichtbar
gesetzt werden.

Bei TTabControl geht das wohl nicht.

Grüße
Klaus

DelphiAndreas 24. Feb 2006 08:40

Re: TabControl Tab unsichtbar machen
 
ah, danke :wall: hätte ich hier in der hilfe wohl auch finden müssen. Allerdings ist die nicht grade besser geworden, dauernd stößt man auf den vb.net kram ;-)

Dann muss ich wohl doch die einzelnen Seiten löschen

Gruß
Andreas


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:44 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz