Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Martin K,
30. Apr 2006
Aha.
Ich sollte wohl doch mal ab und zu wieder in die Hilfe schauen :wink:
Danke nochmal!
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Martin K,
30. Apr 2006
Wie kann man nun allg. den Default-Wert einer Property erhalten?
Ist das überhaupt möglich???
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Martin K,
30. Apr 2006
Hi, ich bin's nochmal:
Ist es auch irgendwie möglich, den Defaultwert einer property abzufragen?
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Martin K,
29. Apr 2006
Ja, das geht!
Danke :thumb:
Hab's noch etwas vereinfacht:
Das ganze geht auch in einer Zeile und ohne zusätzliche Variable:
SetStrProp(GetObjectProp(FindComponent('Label1'), 'Font'), 'Name', 'Arial');
Das ganze ändert also die Schriftart von Label1 in Arial,
wobei alles nur in Strings übergeben wird!
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Martin K,
29. Apr 2006
Kaum ist ein Problem gelöst, kommt schon das nächste:
Funktioniert das auch mit einer "Untereigenschaft" ?
also z.B.:
Label1.Font.Name ????
Dieses Beispiel war ja für Label1.Caption
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Martin K,
29. Apr 2006
Cool, das funktioniert!!!! :thumb:
Vielen Dank an alle.
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Martin K,
29. Apr 2006
Ja, das mit Form1 war ja auch nur ein Beispiel.
Es sollte z.B. auch so gehen können:
GetPropInfo(FindComponent('Label1'),'Caption');
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by Martin K,
29. Apr 2006
Hi Leute,
kann man irgendwie auf eine property einer Komponente zugreifen, von der man nur jeweils die Strings hat ?
Also so etwas z.B.:
//Zuordnung:
FindComponent('Form1.Caption') := 'Test';
//auslesen: