Bitmap buttons in the RibbonBar

Post Reply
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Bitmap buttons in the RibbonBar

Post 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?
User avatar
cnavarro
Posts: 6558
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Bitmap buttons in the RibbonBar

Post by cnavarro »

Try directly

Code: Select all | Expand


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
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Re: Bitmap buttons in the RibbonBar

Post by Natter »

What is oBmp (relative to the button in the RibbonBar) ?
User avatar
karinha
Posts: 7948
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: Bitmap buttons in the RibbonBar

Post by karinha »

Code: Select all | Expand


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


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Post Reply