erase button on ribbonbar- Resolved

erase button on ribbonbar- Resolved

Postby Silvio.Falconi » Fri May 17, 2019 9:23 am

I must erase 4 button on a ribbonbar on a group to recreate it each time I open a function

I made

Code: Select all  Expand view  RUN
IF oApp():oNavigaZoom != nil
         oApp():oNavigaZoom:end()
         For n= 1 to 4
            oBtnNav[n]:destroy()  //end()
            next
         oApp():oNavigaZoom := oApp():oReBar:AddGroup( 300, "Navigazione", 1,,, )
        else
         oApp():oNavigaZoom := oApp():oReBar:AddGroup( 300, "Navigazione", 1,,, )
      Endif

 @ 9,5 ADD BUTTON oBtnNav[1]......



and try also with

I
Code: Select all  Expand view  RUN
F oApp():oNavigaZoom != nil
                AEVal( oBtnNav, { | oBtn | oBtn:end() } )
         oApp():oNavigaZoom:end()
         oApp():oNavigaZoom := oApp():oReBar:AddGroup( 300, "Navigazione", 1,,, )
        else
         oApp():oNavigaZoom := oApp():oReBar:AddGroup( 300, "Navigazione", 1,,, )
      Endif








but it make error on second time I try to end the button and recreate it
Last edited by Silvio.Falconi on Fri May 17, 2019 10:39 am, edited 1 time in total.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7074
Joined: Thu Oct 18, 2012 7:17 pm

Re: erase button on ribbonbar

Postby Silvio.Falconi » Fri May 17, 2019 10:39 am

Resolved

Code: Select all  Expand view  RUN
For n= 1 to Len( oApp():oNavigaZoom:aControls)
            oApp():oNavigaZoom:aControls[n]:end()
           next
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7074
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

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