![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#3
|
|||
|
|||
|
Cambiar el color de fuente en TDBGID
Tengo el siguiente código
procedure TFMantenimientoVentas.GFacturasDrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); begin if DM.THisFac.RecordCount > 0 then begin if state <> [gdfocused] then begin with Sender as TExtendedGrid do begin if DM.THisFacAnulado.AsString = 'X' then GFacturas.canvas.Font.Color:=clRed else GFacturas.canvas.Font.Color := clBlack; end; end; GFacturas.DefaultDrawColumnCell(Rect,DataCol,Column,State); end; end; El caso es que al estar sobre un registro y ser la barra del registro activo azul y la fuente negra no se ven bien los datos del registro. Antes de modificar ese evento los datos del registro activo salen en color blanco sobre la barra del registro activo en color azul, con lo que se distinguen perfectamente los datos del registro. Espero hacerme entender con claridad.. Y AGRADEZCO VUESTRA AYUDA!!! |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Cambiar el color de la fuente de una fila en TDBGRID | KAYO | Varios | 1 | 01-10-2008 18:20:40 |
| Cambiar el color de fuente en TRichEdit | Jose Roman | OOP | 3 | 30-07-2008 18:05:11 |
| cambiar Color de la fuente de un Tdbedit | nenufer | OOP | 8 | 26-05-2006 16:30:52 |
| Cambiar el color de la fuente | chipsoni | Varios | 2 | 24-04-2006 13:52:12 |
| Cambiar color de fuente de un String Grid. | alfredosg19 | OOP | 2 | 27-03-2005 18:48:10 |
|