One by One
@ nRow, nCol BTNBMP oBoton OF oWnd5 Prompt cPrompt SIZE nAnBoton,nAlBoton PIXEL NOBORDER FONT oFontBold CENTER
oBoton:lTRANSPARENT:=.F.
oBoton:cTooltip:=cPrompt
oBoton:bClrGrad = { | lMouseOver | If( ! lMouseOver,;
{{ 1, nRGB(210,210,210), nRGB(210,210,210) }, { 1, nRGB(250, 0, 0), nRGB(250, 0, 0) } }, ;
{{ 1, nRGB(210, 10, 10), nRGB(210, 10, 10) }, { 1, nRGB(250, 50, 50), nRGB(250, 50, 50) } } ) }Then thru another function I assign or not the JPG image to each BTNBMP
aBoton[x,y]:FreeBitmaps()
aBoton[x,y]:lTRANSPARENT:=.F.
If Len(Alltrim(oDbPro:IMAGEN)) > 0
aBoton[x,y]:hBitmap1 := FILoadFromMemory( oDbPro:IMAGEN )
aBoton[x,y]:hPalette1 := 0
Endif
aBoton[x,y]:cCaption:=oDbPro:MINIDESC
aBoton[x,y]:cTooltip:=oDbPro:PRODUCTO
aBoton[x,y]:bAction:=bDo
aBoton[x,y]:refresh()But they are all transparent, and I don't need them like that.
They are placed on a Window, with gradient fill and no Transparent Clause
Any help will be appreciated
From Chile
Adolfo
http://www.xdata.cl - Desarrollo Inteligente
----------
Asus TUF F15, 32GB Ram, 2 * 1 TB NVME M.2, GTX 1650


