Styling components by extending their class
问题 From this question Passing object in reference / one place to style objects I was just thinking, what about if I created a descendant class for the item I am styling. eg (excuse the poor code, not in ide, but you should get what I mean) TStyledButton = class(TButton) public constructor Create; //This overrides the main TButton end; constructor TStyledButton.Create; begin inherited; self.Color := clRed; end; Then in my form I just have the Button1 as a TStyledButton instead. This would remove