Recent

Author Topic: Different TImage behaviour from different widget  (Read 3863 times)

Fodox

  • New Member
  • *
  • Posts: 13
Different TImage behaviour from different widget
« on: April 17, 2008, 06:06:17 pm »
Hello, I have another question.
Under Windows, I have a TImage and I load it with TBitmap from a record in an archive (using ZeosLib). The code is:
Code: [Select]

BMP:=tBitmap.Create;
MS:=tMemoryStream.Create;
tBlobField(Query.FieldByName('myfield')).SaveToStream(MS);
MS.Position:=0;
BMP.LoadFromStream(MS);
Image.Picture.Assign(BMP);

If I use Windows widget It work, but if I switch to GTK2 widget the Image remain empty.
Also trying to compile under Ubuntu, with GTK2, the Image remain empty.

Can anyone help me?

 

TinyPortal © 2005-2018