Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #6  
Antiguo 02-05-2006
Avatar de Lepe
[Lepe] Lepe is offline
Miembro Premium
 
Registrado: may 2003
Posts: 7.424
Poder: 31
Lepe Va por buen camino
Pues si tengo un ejemplito hecho... ahí va:

tb son botones de un Toolbar que tienen la propiedad Grouped a True para cambiar la negrita, subrayado, alineado, etc.

Código Delphi [-]
procedure TFrmReport.tbnegritaClick(Sender: TObject);
begin
if (fsbold in rich.SelAttributes.Style) then
  rich.SelAttributes.Style:=  rich.SelAttributes.Style - [fsbold]
else
  rich.SelAttributes.Style:=  rich.SelAttributes.Style + [fsbold];

tbnegrita.Down:=(fsbold in rich.SelAttributes.Style)
end;


procedure TFrmReport.RichSelectionChange(Sender: TObject);
var indicetemp:integer;
begin

case ord(rich.Paragraph.Alignment) of
  0: tbleft.down:=true;
  1: tbright.Down:=true;
  2: tbcenter.down:=true;
  else
  begin
    tbright.Down:=false;
    tbcenter.Down:=false;
    tbleft.Down:=false;
  end;
end;


tbnegrita.Down:=(fsbold in rich.SelAttributes.Style);
tbsubrayado.Down:=(fsUnderline in rich.SelAttributes.Style);
tbcursiva.down:=(fsitalic in rich.SelAttributes.Style);


end; //richselectionchange;

Saludos
__________________
Si usted entendió mi comentario, contácteme y gustosamente,
se lo volveré a explicar hasta que no lo entienda, Gracias.
Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
StringGrid, colores y alineación Alexander Varios 5 17-11-2005 01:15:11
Color y alineacion en un DBGrid Sr.Scorpion Conexión con bases de datos 2 19-04-2005 16:55:02
Alineación en Edit rbeltran Varios 1 28-01-2005 17:01:11
Alineación de controles roman OOP 9 24-08-2004 00:00:57
alineacion de 2 StringGrid miguel_fr OOP 6 17-06-2004 15:50:09


La franja horaria es GMT +2. Ahora son las 14:48:08.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi