Ver Mensaje Individual
  #7  
Antiguo 04-04-2018
Avatar de Angel.Matilla
Angel.Matilla Angel.Matilla is offline
Miembro
 
Registrado: ene 2007
Posts: 1.350
Reputación: 19
Angel.Matilla Va por buen camino
Gracias por las respuestas. Dando vueltas encontré la solución; puede que no sea la mejor, pero funciona.
Código PHP:
void __fastcall TForm1::FormActivate(TObject *Sender)
{
     
TImageList *list = new TImageList(Application->Icon->WidthApplication->Icon->Height);

     try
     {
          list->
AddIcon(Application->Icon);
          
TrayIcon1->Icons     = list;
          
TrayIcon1->IconIndex 0;
     }
     
__finally
     
{
          
delete list;
     }
}
//--------------------------------------------------------------------------- 
No obstante le echaré un ojo a tu componente.
Responder Con Cita