[lazarus] can not resize form

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Dec 15 14:43:59 EST 2003


On Mon, 15 Dec 2003 15:49:12 +0100  LeVA <leva at az.isten.hu> wrote:

> And allow me to merge another problem. When I'm using the BitButton, or 
> the TIMAGE, lazarus can not display the given bmp file correctly. It 
> only puts some colour lines, and a thick black line instead of 
> displaying the bmp. I tried to convert the bitmap to greyscale, but no 
> success. I get these messages in my console, when adding bmp files:
> 
> Warning: [TgtkObject.CreateBitmap] No visual for depth 8. Using default.
> 
> I get this message when I'm opening a greyscaled bitmap file too.

The old bitmap loading code is buggy.

The new fpImage code works better, although not for 8bit color depths. As
soon as the official compiler for lazarus becomes fpc 1.9 or 2.0, fpImage
will be activated as default. At the moment to activate it, you must compile
the LCL with -dUseFPImage.


Mattias






More information about the Lazarus mailing list