[Lazarus] Specification for TWinControl.SetShape

Paul Ishenin webpirat at mail.ru
Sat May 2 17:56:40 CEST 2009

Felipe Monteiro de Carvalho wrote:
> Hello,
> What is the exact specification for TWinControl.SetShape (bitmap
> version) ? (for custom shaped windows)
> I certified that black pixels are opaque and white pixels are fully
> transparent, but what about other colors? What is defined for them?
> Simply a recomendation not to use, as each platform may behave
> differently?
Nothing. You must use black/white 2 color mask.
> Also, I assume that only full transparency or fully opaque is
> supported, and the bitmap cannot be used to make an Alpha transparent
> window, is that correct?

Best regards,
Paul Ishenin.

More information about the Lazarus mailing list