Autor Beitrag
SmileySN
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 297

WinXP, Win7
Delphi 2010 Professional
BeitragVerfasst: So 16.04.06 13:41 
Ich habe eine TabControl und darunter einige Tabs angelegt.
Auf den Tabs habe ich einige Komponenten liegen, also jeweils eine Maske, mit Eingabefeldern, angelegt.
Jetzt möchte ich aber die Reihenfolge der Seiten verändern, da sich herausgestellt hat, dass meine erste Anordnung nicht sinnvoll war.

Gibt es einen Befehl, mit denen man die Reihenfolge der Tabs ändern kann, oder welche Möglichkeiten habe ich sonst ?
Sonst muss ich ja alle Masken neu anlegen.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 16.04.06 14:10 
ja. jede Tab-Page hat eine eigenschaft INDEX mit der kannst du die Reihenfolge ändern.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
SmileySN Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 297

WinXP, Win7
Delphi 2010 Professional
BeitragVerfasst: So 16.04.06 14:25 
Ja, soweit war ich schon, dass ich in der Hilfe was von Index gelesen habe.
Habe versucht den Index zu ändern, komme aber mit der Syntax nicht klar und verstehe die Hilfe diesbezüglich nicht.
Kann ich ein Beispiel haben, bitte !
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: So 16.04.06 14:30 
Ich weiß nicht genau, wie TabControls funktionieren, allerdings ist TPageControl meistens die bessere Wahl.
Dort kann man die Position des Tabs über die Eigenschaft PageIndex verändern.
SmileySN Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 297

WinXP, Win7
Delphi 2010 Professional
BeitragVerfasst: So 16.04.06 15:00 
Sorry, hab mich verschrieben, ich rede eigentlich ja von der TPageControl, bin durch die tabs durcheinandergekommen.
Die Eigenschadft PageIndex gibt es nicht, nur Pages[index] und die ist nur readonly.
An dem Problem hänge ich fest.
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: So 16.04.06 15:08 
Ich hab hier mal eben eine Beispielanwenung geschrieben, vlt. hilft dir das ja.. :wink:
Einloggen, um Attachments anzusehen!
SmileySN Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 297

WinXP, Win7
Delphi 2010 Professional
BeitragVerfasst: So 16.04.06 15:25 
Danke, so geht es.
Ich hab immer unter PageControl.xxx gesucht, kein Wunder dass es da nicht funktioniert.