Teng un TListView con tres columnas; el ancho de las mismas se ajusta en función de un parámetro con este código:
Código:
if (cAux == "Banco")
{
fEmiRec->Label1->Caption = "Recibos " + LowerCase(pItem->Caption) + " domiciliados - F. de cargo: " + pItem->SubItems->Strings[1];
fEmiRec->Label2->Caption = "Periodicidad";
fEmiRec->Label3->Left = 246;
fEmiRec->Lista->Column[0]->Width = 149;
fEmiRec->Lista->Column[1]->Width = 149;
fEmiRec->Lista->Column[2]->Width = 149;
}
else
{
fEmiRec->Label1->Caption = "Recibos " + LowerCase(pItem->Caption) + " no domiciliados - F. de cargo: " + pItem->SubItems->Strings[1];
fEmiRec->Label2->Caption = "Junta Local";
fEmiRec->Label3->Left = 286;
fEmiRec->Lista->Column[0]->Width = 250;
fEmiRec->Lista->Column[1]->Width = 88;
fEmiRec->Lista->Column[2]->Width = 110;
}
No sé por qué siempre que entra por el lado del
else, al ejecutar fEmiRec->Lista->Column[0]->Width me da este error:

Ya no se me ocurre que probar.