Page 1 of 1

Bitmap buttons in the RibbonBar

Posted: Tue Sep 06, 2022 10:57 am
by Natter
Hi,

When clicking a button in the RibbonBar, I need to change the bitmap of this button. I do as:

Code: Select all | Expand

myButton:FreeBitmaps()
myButton:LoadBitmaps(bitmap from resources)

However, nothing changes. What am I doing wrong?

Re: Bitmap buttons in the RibbonBar

Posted: Tue Sep 06, 2022 11:47 am
by cnavarro
Try directly

Code: Select all | Expand


oBmp:SetImages( i1, i2, i3, i4 )
 

Re: Bitmap buttons in the RibbonBar

Posted: Tue Sep 06, 2022 1:28 pm
by Natter
What is oBmp (relative to the button in the RibbonBar) ?

Re: Bitmap buttons in the RibbonBar

Posted: Tue Sep 06, 2022 1:56 pm
by karinha

Code: Select all | Expand


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


Regards, saludos.