Autor Beitrag
patmann2001
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 201

Windows 7 Prof.
Delphi XE2
BeitragVerfasst: Di 22.10.02 17:09 
Hallo
Ich habe ein TPageControl auf meiner Form. Ich möchte, das immer nur zwei von drei Seiten sichtbar sind, der Reiter meiner dritten Seite soll also mit verschwinden, nicht nur der Inhalt. Ich möchte aber nicht erst alles zur Laufzeit Createn sondern alles soll schon vorhanden sein. Wie geht sowas?

cu Patmann
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Di 22.10.02 17:25 
probiers mal so:

ausblenden Quelltext
1:
2:
3:
4:
5:
procedure TForm1.FormCreate(Sender: TObject);
begin
  TabSheet3.PageControl := nil;
  TabSheet3.Visible := False;
end;


zum Anzeigen dann so:

ausblenden Quelltext
1:
2:
3:
4:
5:
procedure TForm1.Button1Click(Sender: TObject);
begin
  TabSheet3.PageControl := PageControl1;
  TabSheet3.Visible := True;
end;

_________________
Viele Grüße
Jakob
patmann2001 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 201

Windows 7 Prof.
Delphi XE2
BeitragVerfasst: Di 22.10.02 22:09 
Hey Danke 8)
Hat super geklappt

cu Patmann :lol: