Autor Beitrag
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 09.07.06 15:28 
Hallo,

ich habe eine Variable x die fünf verschiedene Zustände annehmen kann:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
type
TX=(1,2,3,4,5);

var x:TX;

Nun möchte ich, dass auf dem Formular je nach Zustand der Variable verschiedene Controls angezeigt werden. Also nicht nur drei Stück sondern jede Menge. Ich könnte jetzt 5 Panels erstellen und die Controls da rein packen und dann mit panel1.visible:=false usw. arbeiten. Das geht doch bestimmt eleganter?!? Vielleicht mit TPageControl, nur sollen dann die anderen vier Tabsheets nicht sichtbar sein. Wer kann mir helfen?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 09.07.06 15:40 
Die Tabs der Seiten eines PageControls kann man mit hilfe der Eigenschaft .TabVisibe ausblenden

_________________
Markus Kinzler.
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 09.07.06 15:49 
Andere Möglichkeit nicht? Danke ich probiers mal :zustimm:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot