Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by ConnorMcLeod,
18. Mai 2017
Ja, klar. Ich wollte nur so nah am Original bleiben, wie möglich.
Soweit ich informiert bin, macht der Compiler nichts anderes, als im Falle von WITH eben so eine Hilfsvariable anzulegen. Kann man also genausogut gleich selber machen und die Lesbarkeit boosten ;-)
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by ConnorMcLeod,
18. Mai 2017
public TfrmProgressDialog.SetProperties(const AFormCaption: string; const ALabel01Caption: string; ...; AProgressMax: integer);
begin
Self.Caption := AFormCaption;
...
end;
with TfrmProgressDialog(Sender) do
begin
SetProperties('blah', 'ldkf', ..., 100);