Ver Mensaje Individual
  #3  
Antiguo 27-09-2012
Avatar de escafandra
[escafandra] escafandra is offline
Miembro Premium
 
Registrado: nov 2007
Posts: 2.210
Reputación: 22
escafandra Tiene un aura espectacularescafandra Tiene un aura espectacular
Otra solución puede ser usar FindComponent:

Código:
  TLabel* Label;
  for(int n=0; n<ComponentCount; n++){
    Label = static_cast<TLabel*>(FindComponent("Label"+IntToStr(n)));
    if(Label){
      if(n == 39 || n == 40) Label->Font->Color = clBlue;
      else Label->Font->Color = clBlack;
    }
  }
Saludos.
Responder Con Cita