Ver Mensaje Individual
  #4  
Antiguo 30-07-2008
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
Un ejemplo de lo que dice dec:

Código Delphi [-]
var
  I: Integer;

begin
  I := RichEdit1.Lines.Add('Texto de color ROJO');
  RichEdit1.SelStart := RichEdit1.Perform(EM_LINEINDEX, I, 0) + Length('Texto de color ');
  RichEdit1.SelLength := Length('ROJO');
  RichEdit1.SelAttributes.Color := clRed;
end;

// Saludos
Responder Con Cita