Problem with btnbmp and png RESOLVED

Problem with btnbmp and png RESOLVED

Postby Silvio.Falconi » Fri Nov 15, 2019 12:42 pm

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  Expand view

#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.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7053
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with btnbmp and png

Postby ukoenig » Fri Nov 15, 2019 10:10 pm

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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Problem with btnbmp and png

Postby nageswaragunupudi » Sat Nov 16, 2019 12:11 am

Fixed in the next version.

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Problem with btnbmp and png

Postby Silvio.Falconi » Sat Nov 16, 2019 8:43 am

Nages, I insert it
please see the source code test I publish on this topic
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7053
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with btnbmp and png

Postby Silvio.Falconi » Sat Nov 16, 2019 8:44 am

ok I saw it
GDi instead of GDIP
sorry
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7053
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 117 guests