Micha Nelissen wrote:
As far as I know, .xpm already worked transparently on win32 as button
glyphs (and elsewhere).

No, it only works on gtk. On win32 it will only work the way it is used for the default button glyphs, and that is quite a strange method that involves changing part of a xpm text into a bitmap handle. If you try to add a xpm file as glyph using the object inspector it will not work as described on the bug report 1092.

If you have an example image that is drawn wrong, please upload to the web
somewhere (and link here).

Ok .... first I´ll try to get the latest from subversion to recheck the bugs, but as far as I remember they do not work as button glyphs.

TBitmap.TransparentColor doesn't actually do anything but return the
bottom-left pixel of a bitmap. So, in lazarus, it doesn't do anything at
all (maybe it should be removed?).

You should be able to change the transparent color using this property. This is what Delphi does.

From Delphi help files:

"Determines which color of the bitmap is to be transparent when the bitmap is drawn.

property TransparentColor: TColor;

Description

Use TransparentColor to determine how to draw the bitmap transparently. When the TransparentMode property is set to tmAuto (default), TransparentColor returns the color of the first pixel in the bitmap image data. For "bottom-up" bitmaps, the first pixel is the bottom leftmost pixel shown onscreen. For "top-down" bitmaps (less common), the first pixel is in the top left corner shown onscreen.

If TransparentColor is assigned, the TransparentMode is automatically set to tmFixed so that the new transparent color can be used later. If you want TransparentColor to disregard any assignments and return the bottom leftmost pixel color again, set TransparentMode to tmAuto."

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to