FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour problema con DrawGray
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
problema con DrawGray
Posted: Thu Jan 29, 2015 10:39 AM

La nueva funcion DrawGray() no funciona correctamante si el bitmap es de 32bits.
Es facil de reproducir el problema , en cualquier buttonbar si se utiliza para el boton un bitmap con alpha y se marca el boton como disable() se ve .

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: problema con DrawGray
Posted: Fri Jan 30, 2015 01:42 PM
I checked with this program just now.
Code (fw): Select all Collapse
#include "fivewin.ch"

//----------------------------------------------------------------------------//

function Main()

   local oWnd, oBar

   DEFINE WINDOW oWnd TITLE FWVERSION
   DEFINE BUTTONBAR oBar OF oWnd SIZE 64,64 2007
   DEFINE BUTTON OF oBar FILE "c:\fwh\bitmaps\32x32\keys.bmp"
   DEFINE BUTTON OF oBar FILE "c:\fwh\bitmaps\32x32\keys.bmp" WHEN .f.
   DEFINE BUTTON OF oBar FILE "c:\fwh\bitmaps\pngs\image3.png"
   DEFINE BUTTON OF oBar FILE "c:\fwh\bitmaps\pngs\image3.png" WHEN .f.
   DEFINE BUTTON OF oBar FILE "c:\fwh\bitmaps\AlphaBmp\visa.bmp"
   DEFINE BUTTON OF oBar FILE "c:\fwh\bitmaps\AlphaBmp\visa.bmp" WHEN .f.

   ACTIVATE WINDOW oWnd

return nil

//----------------------------------------------------------------------------//




Buttons 1,3,5 are active and buttons 2,4,6 are disabled and painted in gray.
Buttons 1,2 are normal 32-bit bitmaps, 3,4 are png and 5,6 are alpha bitmaps.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion