Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > OOP
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #2  
Antiguo 02-06-2010
Avatar de aeff
aeff aeff is offline
Miembro
 
Registrado: oct 2006
Ubicación: Cuba, Guantánamo
Posts: 348
Poder: 18
aeff Va camino a la fama
hecha un vistazo a esto:

Código Delphi [-]
...
 
implementation
 
uses  CommCtrl;
 
procedure SetColumnImage(List: TListView; Column, Image: Integer; ShowImage:
  Boolean);
var
  Align, hHeader: integer;
  HD: HD_ITEM;
begin
  hHeader := SendMessage(List.Handle, LVM_GETHEADER, 0, 0);
  with HD do
  begin
    case List.Columns[Column].Alignment of
      taLeftJustify: Align := HDF_LEFT;
      taCenter: Align := HDF_CENTER;
      taRightJustify: Align := HDF_RIGHT;
    else
      Align := HDF_LEFT;
    end;
    mask := HDI_IMAGE or HDI_FORMAT;
    pszText := PChar(List.Columns[Column].Caption);
    if ShowImage then
      fmt := HDF_STRING or HDF_IMAGE or HDF_BITMAP_ON_RIGHT
    else
      fmt := HDF_STRING or Align;
    iImage := Image
  end;
  SendMessage(hHeader, HDM_SETITEM, Column, Integer(@HD));
end;

en el evento OnColumnClick coloca esto:

Código Delphi [-]
   SetColumnImage(ListView1, 1, 0, true);

solo tienes que relacionar la propiedad SmallImages del ListView con un ImageList y en este las imáganes de las flechitas.

Puedes adaptar un poco más el código a tu comodidad.

Espero haberte ayudado.

salduos.

aeff!!!
Responder Con Cita
 



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
Listview 2 columna Yasnet Varios 4 28-12-2008 01:55:52
ListView Columna BMP ANALBA Varios 2 25-08-2008 19:25:50
Ordenar Listview por columna Coco_jac Varios 10 03-01-2006 19:03:20
Sombreado Columna ListView Igna OOP 0 05-11-2004 12:46:29
Posición Columna en ListView Igna OOP 2 02-11-2004 13:40:14


La franja horaria es GMT +2. Ahora son las 13:06:20.


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