| |
| Using an Icon as the Glyph in a TSpeedButton |
 |
Is it possible to use an icon as the Glyph in a TSpeedButton component?
uses ShellApi;
procedure TForm .FormShow(Sender: TObject);
var
Icon: TIcon;
begin
Icon := TIcon.Create;
Icon.Handle :=
ExtractIcon(0,
'C:\WINDOWS\NOTEPAD.EXE',
);
SpeedButton .Glyph.Width := Icon.Width;
SpeedButton .Glyph.Height := Icon.Height;
SpeedButton .Glyph.Canvas.Draw(0, 0, Icon);
Icon.Free;
end;
|
|
| Hits/month |
2,500,000+ |
Downloads (Since May 2000) |
7,393,709 |
| Total Files |
6,023 |
| Forum msgs |
7,670 |
| Articles/FAQs |
70+/900+ |
Top Selling Software at Amazon
|