Autor Beitrag
Tower
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 99



BeitragVerfasst: Fr 10.01.03 09:43 
Hallo!

Ich habe in einem Dokument mehrere Komponenten mit dem Alignment alLeft. Gibt es eine Möglichkeit, zur Laufzeit festzulegen, welche von denen am "leftesten" ist? Also welche ganz am Rand positioniert ist, welche danach usw.?


Schönen Gruß.

Carsten.
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Mi 15.01.03 16:56 
Eine direkte Möglichkeit die Reihenfolge von alLeft
Komponenten zu verändern ist mir nicht bekannt. :(

Aber du könntest sie neu anordnen lassen. d.h.:

Du setzt die Left-Eigenschaft der Komponente die am weitesten vom linken Rand entfernt sein soll auf Left := 0.
Dann die der, die neben der letzten sein soll usw.

BSP:
Panel1|Panel2
Im Code: Panel2.Left := 0;
->und danach die Anordnung
Panel2|Panel1

Hoffe das hilft (hab´s selbst getestet) :idea:

Gruß
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: Mi 15.01.03 17:04 
prüfe den werf left der jeweiligen komponente.

wenn beispielsweise panel1.left 0 ist und panel2.left 80 ist, dann ist panel 1 am leftesten