Autor Beitrag
MarcRB1975
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 131

XP, Windows7
Delphi 2005 PE, Turbo, RAD Delphi 2009, XE, XE2
BeitragVerfasst: Mo 29.08.05 17:31 
Hallo!!

Ich habe folgendes Problem mit PageControl:

wenn der Anwender ein bestimmtes TabSheet auswählt und bestimmte Angaben in einem anderen TabSheet fehlen, dann soll automatisch in das TabSheet gewechselt werden, in dem die Angaben fehlen bzw. dann dort noch eingegeben werden müssen, damit z.B. irgendwelche Berechnungen gemacht werden.

Irgendwie bekomme ich den automatischen Wechsel nicht hin.

Wer könnte mir denn da weiterhelfen oder einen Tipp geben??

Vielen Dank im Voraus!!
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 29.08.05 18:44 
ausblenden Delphi-Quelltext
1:
pagecontrol1.ActivePageIndex := 1; //oder halt die gewünschte Seite					

_________________
We are, we were and will not be.
MarcRB1975 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 131

XP, Windows7
Delphi 2005 PE, Turbo, RAD Delphi 2009, XE, XE2
BeitragVerfasst: Mo 29.08.05 19:14 
Danke für die schnelle Antwort. Das hatte ich auch schon versucht.
Das Problem:
Er wechsel schon zu dem TabSheet, aber es flackert kurz und er zeigt mir das Tabsheet an, das vorher war. Er wechselt also nicht.
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mo 29.08.05 19:15 
activepage?
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mo 29.08.05 19:49 
hallo,

richtig und so geht es:
ausblenden Delphi-Quelltext
1:
PageControl1.ActivePage := PageControl1.Pages[0];					

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
MarcRB1975 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 131

XP, Windows7
Delphi 2005 PE, Turbo, RAD Delphi 2009, XE, XE2
BeitragVerfasst: Mo 29.08.05 20:16 
DANKE!!!! Hat super geklappt!!!