FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Listview color fondo
Tengo un listview que cargo manualmente y en el evento CustomDrawSubItem pongo el siguiente codigo:
Código:
if (Item.Selected) then Begin Sender.Canvas.Brush.Color := clblue; end; Código:
if (Item.Selected) then Begin SetBkColor(Sender.Canvas.Handle, clblue); end; Gracias y un saludo |
#2
|
||||
|
||||
Creo que debería ser así:
Según el Help de Delphi: Cita:
|
#3
|
|||
|
|||
Gracias por tu respuesta pero lo he probado tal cual me dices y el Item no tiene la propiedad Canvas lo has puesto tu de alguna otra manera.
Un saludo |
#4
|
||||
|
||||
No, lo puse rápidamente, sin comporbarlo.
Mirando el Help de Delphi sobre TListItem encontré esta propiedad que supongo te puede servir: Cita:
|
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Fondo color label | LizdR | Varios | 3 | 19-03-2008 16:58:02 |
Color de fondo de un ShowMessage() | Perio | Varios | 4 | 05-02-2008 16:08:35 |
Color de fondo de pantalla | madiazg | API de Windows | 12 | 27-10-2007 07:40:10 |
Color de fondo de Bitmap | arantzal | Varios | 1 | 15-01-2007 11:32:42 |
Color de fondo de un TImage | Drake | OOP | 1 | 03-08-2006 19:36:36 |
|