FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Bitmap buttons in the RibbonBar
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Bitmap buttons in the RibbonBar
Posted: 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 (fw): Select all Collapse
myButton:FreeBitmaps()
myButton:LoadBitmaps(bitmap from resources)

However, nothing changes. What am I doing wrong?
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Bitmap buttons in the RibbonBar
Posted: Tue Sep 06, 2022 11:47 AM
Try directly
Code (fw): Select all Collapse
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
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Bitmap buttons in the RibbonBar
Posted: Tue Sep 06, 2022 01:28 PM
What is oBmp (relative to the button in the RibbonBar) ?
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Bitmap buttons in the RibbonBar
Posted: Tue Sep 06, 2022 01:56 PM
Code (fw): Select all Collapse
c:\fwh..\samples\shpchrt1.prg
c:\fwh..\samples\testfold.prg


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

Continue the discussion