Ver Mensaje Individual
  #5  
Antiguo 15-03-2014
Avatar de eennzzoo
eennzzoo eennzzoo is offline
Miembro
NULL
 
Registrado: nov 2013
Ubicación: Argentina
Posts: 59
Reputación: 13
eennzzoo Va por buen camino
Cita:
Empezado por ecfisa Ver Mensaje
Hola.

Probe el código antes de publicarlo y funciona correctamente, tal vez se deba a versiones distinas de C++ Builder.

Reemplaza el anterior código del evento OnAdvancedCustomDrawItem por este:
Código:
void __fastcall TForm1::ListView1AdvancedCustomDrawItem(
      TCustomListView *Sender, TListItem *Item, TCustomDrawState State,
      TCustomDrawStage Stage, bool &DefaultDraw)
{
  TCanvas *CV = ListView1->Canvas;

  CV->Font->Style = CV->Font->Style >> fsBold;
  CV->Font->Color = clBlack;
  if (Item->Index == ListView1->ItemIndex) {
    CV->Font->Style = CV->Font->Style << fsBold;
    CV->Font->Color = clRed;
  }
}
Si continuas teniendo problemas avisame y te adjunto el los fuentes para que puedas revisarlos con tranquilidad.

Saludos
Sigue igual.
Responder Con Cita