Hi,
Is there a way to use PNG images on buttons instead of BMP files? With the use of the transparancy?
PNG on buttons
Re: PNG on buttons
Code: Select all
#INCLUDE "dcdialog.ch"
FUNCTION Main()
LOCAL GetList[0], oBitmap
oBitmap := DC_GetBitmap('MokoSanta.Png')
oBitmap:transparentClr := GRA_CLR_WHITE
@ 0,0 DCPUSHBUTTONXP CAPTION oBitmap SIZE 500,500 PIXEL ;
COLOR GRA_CLR_DARKPINK GRADIENT .3
DCREAD GUI FIT TITLE 'Transparent Button'
RETURN nil
* -------
PROC appsys ; return
The eXpress train is coming - and it has more cars.
Re: PNG on buttons
Hi Roger,
Thanks for the sample.
Would it be possible to add the PNG to a DLL and to use it that way?
Otherwise I'm thinking about creating a font with my icons.
Thanks for the sample.
Would it be possible to add the PNG to a DLL and to use it that way?
Otherwise I'm thinking about creating a font with my icons.