Ver Mensaje Individual
  #6  
Antiguo 10-11-2005
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
Je, je, éste también es un bonito pintado:

Código Delphi [-]
procedure TFileListBox.DrawItem(Index: Integer; Rect: TRect; State: TOwnerDrawState);
begin
  if odSelected in State then
    Canvas.Brush.Color := clGray
  else
    case Index mod 4 of
      0: Canvas.Brush.Color := clGreen;
      2: Canvas.Brush.Color := clRed;
      1, 3: Canvas.Brush.Color := clWhite;
    end;

  inherited;
end;



// Saludos
Responder Con Cita