Ver Mensaje Individual
  #2  
Antiguo 16-02-2005
Avatar de Héctor Randolph
[Héctor Randolph] Héctor Randolph is offline
Miembro Premium
 
Registrado: dic 2004
Posts: 882
Reputación: 20
Héctor Randolph Va por buen camino
Hola amigo!
¿ Te refieres al tipo de letra o a un la línea completa en diferente color?

Si te refieres a letras en distintos colores y tamaños puedes utilizar el componente TRichEdit

En este ejemplo colocas un RichEdit, un DialogFont y cambias el tipo de letra del texto seleccionado.

Código Delphi [-]
procedure TMainForm.SelectFont(Sender :TObject);
begin
  FontDialog1.Font.Assign(RichEdit1.SelAttributes);

  if (FontDialog1.Execute) then
    RichEdit1.SelAttributes.Assign( FontDialog1.Font );
  RichEdit1.SetFocus;
end;


Si te refieres a toda una línea en distinto color incluyendo el fondo puedes utilizar un StringGrid o algo así.

Un saludo

Última edición por Héctor Randolph fecha: 16-02-2005 a las 19:03:27. Razón: Corregir texto
Responder Con Cita