Icon assignment does not work
Original Reporter info from Mantis: Enigma
-
Reporter name:
Original Reporter info from Mantis: Enigma
- Reporter name:
Description:
Just trying to put TImage on the form and on page show I assign system icon to this TImage, the code is quite simple:
TImage.Picture.Icon.Handle := LoadIcon(0, IDI_ERROR);
or
TImage.Picture.Icon.Handle := LoadIcon(0, IDI_APPLICATION);
or
TImage.Picture.Icon.Handle := LoadIcon(0, IDI_QUESTION);
or
TImage.Picture.Icon.Handle := ExtractAssociatedIcon(...);
TImage keeps empty... But same code is working well in Delphi..
Maybe there is another way to show system icons on the TImage?
Mantis conversion info:
- Mantis ID: 14848
- OS: x64
- OS Build: Vista
- Build: Any
- Platform: Windows
- Fixed in version: 0.9.29 (SVN)
- Target version: 1.0.0
- LazTarget: 1.0