Forum > General

How to paint Gradient BitBtn? (Como pintar o BitBtn de Gradiente?)

(1/1)

TeoUrbana:
Google translator: Portuguese -> English

Hi everyone, can anyone help me and post a code so that I can add in a BitBtn descendant, where we can make a Gradient in the background color, choosing the final and initial color?

I found the BGRAComponents, and they are great, except they do not get focus, in other words, I can not navigate through them using the tab or Sifht + tab, which for me is a small flaw.

So, does anyone have a gradient code for BitBtn? : D




--- Quote ---Olá pessoal, será que alguém pode me ajudar e postar um código para que possa acrescentar num descendente do BitBtn, onde possamos fazer um Gradiente na cor de fundo, escolhendo a cor final e inicial?


Eu achei os BGRAComponents, e são ótimos, exceto pelo fato de não receberem foco, ou seja, não consigo navegar por eles utilizando o tab ou Sifht+tab, o que pra mim é uma pequena falha.


Então, será que alguém tem um código de degradê para o BitBtn?  :D
--- End quote ---

balazsszekely:

--- Quote ---So, does anyone have a gradient code for BitBtn?
--- End quote ---
TBitBtn is just a wrapper around the OS common control, so you cannot change the background color. If BGRAComponents works for you, just drop a TBGRABitmap to a panel and you're good to go.

Navigation

[0] Message Index

Go to full version