Extract an Icon From Application
Extract an icon from application.
uses shellApi;
…
procedure TForm1.Button1Click(Sender: TObject);
var
MyIcon : TIcon;
begin
if Opendialog1.Execute then
begin
MyIcon := TIcon.Create;
MyIcon.Handle := ExtractIcon(hInstance, PChar(Opendialog1.filename),0);
DrawIcon(Form1.Canvas.Handle, 10, 10, MyIcon.Handle);
MyIcon.Free;
end;
end;
EasyListview is a control that has no dependance on the Mi...
By far my most popular Delphi component. It's a comprehensiv...
Tabs get inefficient as soon as you have more than 10 tabs o...
This component is a mix between TTreeView and TListView ...
Application settings management is a important and base pa...
Monday 05 Feb 2007 | Delphi Tutorial | Files