Problem with btnbmp and png RESOLVED

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Problem with btnbmp and png RESOLVED

Post by Silvio.Falconi »

I have this btnbmp

Image

As you can see the image is not showed good, png image is shown with black outlines why?
I use png and GDI command but I not see the right image
how I can resolve?


Code: Select all

#include "fivewin.ch"

Function test()
Local oDlg
Local oBtn
Local cImage:="image.png"
Local Cdesc:="Articolo 1"
Local nPrezzo:= 30
local nrow:= 10
local ncol:= 10


DEFINE DIALOG oDlg Size 450,350

 @ nRow,ncol BTNBMP oBtn ;
        FILENAME cImage ;
        SIZE 195, 50 PIXEL;
         FLAT  RIGHT;
        PROMPT "" + alltrim(cDesc) + CRLF + transform( nPrezzo,'@ €99,999.99') + " " ;
        OF oDlg ;
        TOOLTIP "fai click per aggiungere un servizio" ;
        COLOR CLR_RED,CLR_WHITE GDI



ACTIVATE DIALOG oDLg
REturn nil
 
Last edited by Silvio.Falconi on Wed Nov 20, 2019 11:34 am, edited 1 time in total.
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: Problem with btnbmp and png

Post by ukoenig »

Silvio,

something has changed
Missing alphachannel in FWH 19.09 :(
see the difference between 19.06 and 19.09

Image

regards
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Problem with btnbmp and png

Post by nageswaragunupudi »

Fixed in the next version.

For FWH1909, please use clause GDIP while defining the button.
Regards

G. N. Rao.
Hyderabad, India
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with btnbmp and png

Post by Silvio.Falconi »

Nages, I insert it
please see the source code test I publish on this topic
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with btnbmp and png

Post by Silvio.Falconi »

ok I saw it
GDi instead of GDIP
sorry
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply