Ver Mensaje Individual
  #17  
Antiguo 22-06-2020
Avatar de ecfisa
ecfisa ecfisa is offline
Moderador
 
Registrado: dic 2005
Ubicación: Tres Arroyos, Argentina
Posts: 10.508
Reputación: 36
ecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to behold
Hola de nuevo.

Pude probar con otra versión de C++ Builder y le pude dar solución al problema del recuadro agregando estas dos líneas:
Código PHP:
void __fastcall TForm1::ListBox1DrawItem(TWinControl *Controlint Index,
      
TRect &RectTOwnerDrawState State)
{
  
TListBox *LB dynamic_cast<TListBox*>(Control);
  
TRect R Rect;

  
AnsiString s LB->Items->Strings[Index];
  
int textHeight LB->Canvas->TextHeight(s);
  
int textLeft   R.left ImageList1->Width ;
  
int textTop    R.top R.Height() / textHeight 2;
  
/*******  AQUI  ********/
  
InflateRect(&R11);
  
LB->Canvas->FillRect(R);
  
/*********************/
  
ImageList1->Draw(LB->CanvasR.leftR.topIndex);
  
LB->Canvas->TextOutA(textLefttextTops);

Saludos
__________________
Daniel Didriksen

Guía de estilo - Uso de las etiquetas - La otra guía de estilo ....
Responder Con Cita