FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with btnbmp and png RESOLVED
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Problem with btnbmp and png RESOLVED
Posted: Fri Nov 15, 2019 12:42 PM
I have this btnbmp



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 (fw): Select all Collapse
#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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Problem with btnbmp and png
Posted: 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



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.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problem with btnbmp and png
Posted: 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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem with btnbmp and png
Posted: Sat Nov 16, 2019 08: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 March-April 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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem with btnbmp and png
Posted: Sat Nov 16, 2019 08: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 March-April 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

Continue the discussion