Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-05

Specification for TWinControl.SetShape

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Felipe Monteiro de Carvalho

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?

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?

thanks,

Felipe Monteiro de Carvalho

Reply by email

Paul Ishenin
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 10 lines
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?

Yes.

Best regards,
Paul Ishenin.

Reply by email