FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour QUICKACCESS with BMP in resource
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
QUICKACCESS with BMP in resource
Posted: Thu Jul 08, 2010 10:58 AM

Hello Antonio

This work correctly
DEFINE QUICKBUTTON OF oRibbon ;
BITMAP "..\bitmaps\16x16\fivetech.bmp", "..\Bitmaps\btnqcka.bmp", "..\Bitmaps\btnqckb.bmp", "..\Bitmaps\btnqckc.bmp" ;
ACTION AbreMenu( oWnd )

If I use the BMP in the resource doesn't work

DEFINE QUICKBUTTON OF oRibbon ;
BITMAP "fivetech", "btnqcka", "btnqckb", "btnqckc" ;
ACTION AbreMenu( oWnd )

Regards Maurizio

Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: QUICKACCESS with BMP in resource
Posted: Thu Jul 08, 2010 12:03 PM
Maurizio.

this a RC file
Code (fw): Select all Collapse
FIVETECH BITMAP "..\\bitmaps\\16x16\\fivetech.bmp"
BTNQCKA BITMAP "..\\bitmaps\\btnqcka.bmp"
BTNQCKB BITMAP "..\\bitmaps\\btnqckb.bmp"
BTNQCKC BITMAP "..\\bitmaps\\btnqckc.bmp"


but the RC should be compile with Microsoft resource compiler, because with borland compiler no work fine with alpha channel bitmap (until my knowledge)

Code (fw): Select all Collapse
rc -r -d__FLAT__ fieldname


other way is: use .RES
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Re: QUICKACCESS with BMP in resource
Posted: Thu Jul 08, 2010 12:13 PM

Daniel
Can open the backstage from the circular quickbutton ?

FWH .. BC582.. xharbour
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: QUICKACCESS with BMP in resource
Posted: Thu Jul 08, 2010 12:15 PM

Mda...

Try :D

Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Re: QUICKACCESS with BMP in resource
Posted: Thu Jul 08, 2010 12:35 PM

Daniel

Sorry , i forgot to tell you that I have the BMP in a DLL .

Maurizio

Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: QUICKACCESS with BMP in resource
Posted: Thu Jul 08, 2010 02:39 PM
Maurizio

Code (fw): Select all Collapse
Function GetInstance()
return hLib


hLib = LoadLibrary( "mydll.dll" )
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Re: QUICKACCESS with BMP in resource
Posted: Thu Jul 08, 2010 03:50 PM

Thank Daniel

with this works

Function GetInstance()
loCAL hLib := LoadLibrary( "NOTA32.dll" )
return hLib

But I don't understand what this function do , and if I have to unload NOTA32.DLL .

Normaly I use only

SET RESOURCES TO "NOTA32.DLL"

Thank in anticipation

Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Re: QUICKACCESS with BMP in resource
Posted: Fri Jul 09, 2010 08:54 AM
FWH .. BC582.. xharbour

Continue the discussion