QUICKACCESS with BMP in resource

QUICKACCESS with BMP in resource

Postby Maurizio » 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
User avatar
Maurizio
 
Posts: 807
Joined: Mon Oct 10, 2005 1:29 pm

Re: QUICKACCESS with BMP in resource

Postby Daniel Garcia-Gil » Thu Jul 08, 2010 12:03 pm

Maurizio.

this a RC file
Code: Select all  Expand view

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: Select all  Expand view
rc -r -d__FLAT__ fieldname


other way is: use .RES
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: QUICKACCESS with BMP in resource

Postby MdaSolution » Thu Jul 08, 2010 12:13 pm

Daniel
Can open the backstage from the circular quickbutton ?
FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm

Re: QUICKACCESS with BMP in resource

Postby Daniel Garcia-Gil » Thu Jul 08, 2010 12:15 pm

Mda...


Try :D
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: QUICKACCESS with BMP in resource

Postby Maurizio » Thu Jul 08, 2010 12:35 pm

Daniel

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

Maurizio
User avatar
Maurizio
 
Posts: 807
Joined: Mon Oct 10, 2005 1:29 pm

Re: QUICKACCESS with BMP in resource

Postby Daniel Garcia-Gil » Thu Jul 08, 2010 2:39 pm

Maurizio

Code: Select all  Expand view
Function GetInstance()
return hLib


hLib = LoadLibrary( "mydll.dll" )
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: QUICKACCESS with BMP in resource

Postby Maurizio » Thu Jul 08, 2010 3: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
User avatar
Maurizio
 
Posts: 807
Joined: Mon Oct 10, 2005 1:29 pm

Re: QUICKACCESS with BMP in resource

Postby MdaSolution » Fri Jul 09, 2010 8:54 am

FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 19 guests