Fórum checkbox com a propriedade transparent #300049
20/10/2005
0
Zumbi
Curtir tópico
+ 0Posts
20/10/2005
Marcio.theis
Gostei + 0
20/10/2005
_rodfaria_
ou ainda, tente codificar o seu próprio componente:
[url]http://tinyurl.com/cvjs7[/url]
Rod.
Gostei + 0
20/10/2005
Zumbi
finally XCanvas.Free; end; end; procedure TDBCheckBoxTransparent.CreateParams(var Params: TCreateParams); begin inherited CreateParams(Params); Params.ExStyle:=Params.ExStyle or WS_EX_Transparent; end; procedure TDBCheckBoxTransparent.CreateWnd; begin inherited CreateWnd; SetButtonStyle; end; procedure TDBCheckBoxTransparent.SetButtonStyle; const BS_MASK = $000F; var Style: Word; begin if HandleAllocated then begin Style:=BS_CHECKBOX or BS_OWNERDRAW; if GetWindowLong(Handle, GWL_STYLE) and BS_MASK <> Style then SendMessage(Handle, BM_SETSTYLE, Style, 1); end; end; end.
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)