Ver Mensaje Individual
  #5  
Antiguo 15-02-2017
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.

No se si te sirva pero, de forma similar al enlace que puso aguml un ejemplo usando las propiedades ItemHeight y Height para lograr el cometido:

Código PHP:
void __fastcall TForm1::FormCreate(TObject *Sender)
{
   
ComboBox1->Style     csOwnerDrawVariable;
   
ComboBox1->ItemIndex 0;
}

void __fastcall TForm1::ReduceClick(TObject *Sender)
{
  
ComboBox1->ItemHeight ComboBox1->ItemHeight 2;
  
ComboBox1->Height     ComboBox1->Height 1;
}

void __fastcall TForm1::btnIncreaseClick(TObject *Sender)
{
  
ComboBox1->ItemHeight ComboBox1->ItemHeight 2;
  
ComboBox1->Height     ComboBox1->Height 1;

Efecto:


Saludos

Edito: Y agregando la rutina de roman (que no había visto al momento de este), ciertamente queda mucho mejor presentado.
__________________
Daniel Didriksen

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

Última edición por ecfisa fecha: 15-02-2017 a las 21:44:54.
Responder Con Cita