Ver Mensaje Individual
  #6  
Antiguo 23-06-2003
Avatar de Investment
Investment Investment is offline
Miembro
 
Registrado: may 2003
Posts: 378
Reputación: 24
Investment Va por buen camino
Eso es otra cosa.
OK.
Puedes añadir un Timage a tu formulario y capturar en el el icono que quieres para tu boton:

Código:
procedure TForm1.FormCreate(Sender: TObject);
var
   Icono:TIcon;
   Indice:word;
begin
  Icono:=TIcon.Create;
  Indice:=0;
  Icono.handle:=ExtractAssociatedIcon(hInstance,
                Pchar('C:\DESARROLLO\unit1.pas'),Indice);
  Image1.Picture.Bitmap.Width:= Icono.Width;
  Image1.Picture.Bitmap.Height:= Icono.Height;
  Image1.Picture.Bitmap.Canvas.Draw(0,0,Icono);
  Icono.Free;
  //Le das el icono al boton. 
  Boton.Glyph:= Image1.Picture.Bitmap;
end;
No te olvides de añadir ShellApi en tu uses
__________________
Saludos,
Peter Investment
Responder Con Cita