FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour refresh a ribbonbar on line
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
refresh a ribbonbar on line
Posted: Tue May 25, 2021 02:31 PM
I have a ribbonbar



on tab 1
I have a group only when lShowMenuVeloci is true

IF oThis:lShowMenuVeloci
ADD GROUP ::oGrMenuVeloci RIBBON ::oRebar TO OPTION 1 WIDTH 130 PROMPT "menu veloci"
Endif

this group is on I draw a red arrow

on tab 4 I insert a rbbtn and I can select if pressed or not ( the fourth button)




it must refresh tab1 of the ribbonbar

I made
Code (fw): Select all Collapse
@ 5,150 ADD BUTTON oBtns[43] prompt "Collegamenti"+CRLF+"Veloci" BITMAP "TOOLBAR_VELOCI" ;
      GROUP oGrV1 SIZE 65,85 top ROUND;
      TOOLTIP "Collegamenti veloci" ;
      ACTION   (oBtns[43]:lSelected:=!oBtns[43]:lSelected,;
                oBtns[43]:refresh(),;
                 if( oBtns[43]:lSelected,;
                                 oThis:lShowMenuVeloci:=.t.,oThis:lShowMenuVeloci:=.f. ),;
                                 oThis:oReBar:aDialogs[1]:refresh() )


but it not refresh the ribbonbar tab1
How I can resolve it ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: refresh a ribbonbar on line
Posted: Thu May 27, 2021 07:48 AM

Any solution Pls ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: refresh a ribbonbar on line
Posted: Thu May 27, 2021 05:01 PM

Dear Silvio,

Have you tried with ::oRebar:Refresh() ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: refresh a ribbonbar on line
Posted: Fri May 28, 2021 06:36 AM
Antonio Linares wrote:Dear Silvio,

Have you tried with ::Refresh() ?


oThis:refresh()
and
oThis:aDialogs[1]:refresh()

I'm trying a little test to make you understand the problem

SENT
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion