Einzelnen Beitrag anzeigen

plusplus

Registriert seit: 30. Jul 2010
106 Beiträge
 
Delphi 2009 Architect
 
#4

AW: Delphi 2010 und TLabel Transparents

  Alt 9. Dez 2010, 12:58
I usually create a base window and inherits all my forms from that base, in the create method of the base form I place a loop:

Code:
uses TypInfo;

for i := 0 to ComponentCount -1 do
begin
  if GetPropInfo(Components[i], 'Transparent') <> nil then
  SetPropValue(Components[i], true);
end;
of course you can also put a if ClassType statement on top.

basically, in the base form I change all properties the way I want them to be, thus I don't need to change it manually in the property editor by hand.
Grid Computing made simple - http://xerocoder.com
  Mit Zitat antworten Zitat