Recent

Author Topic: How to paint Gradient BitBtn? (Como pintar o BitBtn de Gradiente?)  (Read 1570 times)

TeoUrbana

  • New Member
  • *
  • Posts: 43
    • Distração For Fun
How to paint Gradient BitBtn? (Como pintar o BitBtn de Gradiente?)
« on: September 21, 2018, 03:11:10 pm »
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

balazsszekely

  • Guest
Re: How to paint Gradient BitBtn? (Como pintar o BitBtn de Gradiente?)
« Reply #1 on: September 21, 2018, 03:26:25 pm »
Quote
So, does anyone have a gradient code for BitBtn?
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.

 

TinyPortal © 2005-2018