Graeme Geldenhuys wrote:
[skiped]
Hi Paul,
Is there anything special I need to do to the PNG images to get them
to load in Lazarus? I created a few more images (in PNG this time),
but they are all blank in the IDE. I even tried to load the images
using a simple test app and TSpeedButton and still they are blank.
Selecting them via the Object Inspector's Glyph or Bitmap property
works fine though.
I'm sure I'm doing something stupid. :)
Graeme.
I dont know what are you doing :) Hope current ide menu images (from
svn) are not blank.
Try to use TPortableNetworkGraphic class.
For example (from mind, so errors are possible):
png: TPortableNetworkGraphic;
begin
png := TPortableNetworkGraphic.Create;
png.LoadFromFile('my_icon.png');
MyButton.Glyph := png;
png.Free;
end;
Paul Ishenin.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives