Bitmap buttons in the RibbonBar

Bitmap buttons in the RibbonBar

Postby Natter » Tue Sep 06, 2022 10:57 am

Hi,

When clicking a button in the RibbonBar, I need to change the bitmap of this button. I do as:
Code: Select all  Expand view
myButton:FreeBitmaps()
myButton:LoadBitmaps(bitmap from resources)

However, nothing changes. What am I doing wrong?
Natter
 
Posts: 1199
Joined: Mon May 14, 2007 9:49 am

Re: Bitmap buttons in the RibbonBar

Postby cnavarro » Tue Sep 06, 2022 11:47 am

Try directly
Code: Select all  Expand view

oBmp:SetImages( i1, i2, i3, i4 )
 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Bitmap buttons in the RibbonBar

Postby Natter » Tue Sep 06, 2022 1:28 pm

What is oBmp (relative to the button in the RibbonBar) ?
Natter
 
Posts: 1199
Joined: Mon May 14, 2007 9:49 am

Re: Bitmap buttons in the RibbonBar

Postby karinha » Tue Sep 06, 2022 1:56 pm

Code: Select all  Expand view

c:\fwh..\samples\shpchrt1.prg
c:\fwh..\samples\testfold.prg
 


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7780
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: dutch, Google [Bot] and 36 guests