[Lazarus] Constraints adding up...

Reenen Laurie rlaurie at gmail.com
Wed Oct 15 16:54:47 CEST 2008


Sebastian Kraft wrote:
> hello,
> 
> since some weeks svn version has problems loading a png image as a glyph on a speedbutton.
> 
> Speedbutton.Glyph.loadfromfile('test.png');


var
   Png: TPortableNetworkGraphic;
begin
   Png := TPortableNetworkGraphic.Create;
   try
     Png.LoadFromFile('test.png');
     Speedbutton.Glyph := Png;
   finally
     Png.Free;
   end;
end;

Best regards,
Paul Ishenin.




More information about the Lazarus mailing list