FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with Skinbuttons()
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Problem with Skinbuttons()
Posted: Wed Apr 14, 2010 04:52 PM

Antonio,

Thanks for the download of skins.obj.

Unfortunately I got an error while building : Unresolved external symbol : _HB_FUN_GRADIENTBRUSH

Have I missed something ?

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: Problem with Skinbuttons()
Posted: Wed Apr 14, 2010 05:16 PM
Driessen
Code (fw): Select all Collapse
function GradientBrush( hDC, nTop, nLeft, nWidth, nHeight, aColors, lVer )

   local hBrush, hBmp, hBmpOld

   hBmp     = CreateCompatibleBitMap( hDC, nWidth, nHeight )
   hBmpOld  = SelectObject( hDC, hBmp )

   GradientFill( hDC, nTop, nLeft, nHeight, nWidth, aColors, lver )

   hBrush   = CreatePatternBrush( hBmp )

   SelectObject( hDC, hBmpOld )
   DeleteObject( hBmpOld )
   DeleteObject( hBmp )


return hBrush
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Problem with Skinbuttons()
Posted: Wed Apr 14, 2010 05:40 PM

Daniel,

Thanks a lot for your help.

It works.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Continue the discussion