Forum: GUI-Design mit VCL / FireMonkey / Common Controls
by Delphi.Narium,
4. Mai 2021
Wenn ich was links anordnen will, aber nicht ganz links, sondern rechts neben dem letzten ganz links, helfe ich mir in der Art:
Panel.Align := alRight; // Schiebt erstmal nach ganz rechts.
Panel.Align := alLeft; // Schiebt nun nicht nach ganz links, sondern rechts neben das "letzte" der links angeordeneten Elemente.
// oder:
Panel.Align := alLeft; // Schiebt nach ganz links.
Panel.Left...
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
by Delphi.Narium,
4. Mai 2021
...
case AMonth of
1..6: begin
FParentCtrl := PnlSixMonts1;
// Beim ersten Panel machst Du das und das Ergebnis stimmt.
FParentCtrl.Padding.Left := GetParentControlPostion(FParentCtrl);
end;
7..12:begin
FParentCtrl := PnlSixMonts2;
// Beim zweiten Panel machst Du das nicht und das Ergebnis stimmt nicht.