Background Color

Background Color

Postby arthursilvestre » Sat Aug 24, 2013 2:38 pm

Good morning guys, Saturday morning here and I curled up with a background color. How do I change this color to the same color of blue ribbon?

NOTE: I use RIBBONBAR

Image
User avatar
arthursilvestre
 
Posts: 32
Joined: Thu Sep 20, 2012 7:29 pm

Re: Background Color

Postby arthursilvestre » Mon Aug 26, 2013 11:37 am

Up
User avatar
arthursilvestre
 
Posts: 32
Joined: Thu Sep 20, 2012 7:29 pm

Re: Background Color

Postby Antonio Linares » Wed Sep 11, 2013 8:07 pm

Arthur,

Look for this code in tribbon.prg:

Code: Select all  Expand view
  IF l2013
      nTopMargin    := 25
      nClrPaneRB    := RGB( 255, 255, 255 )
      nClrBoxOut    := RGB( 192, 192, 192 )
      nClrBoxIn     := RGB( 255, 255, 255 )
      nClrBoxSelOut := RGB( 255, 255, 255 )
      nClrBoxSelIn  := RGB( 255, 255, 255 )
      aGrad         := { { 1, RGB( 255, 255, 255 ), RGB( 255, 255, 255 ) } }
      aGradFld      := {| nOpt | if( nOpt == ::nStart, { { 1, RGB( 255, 255, 255 ), RGB( 255, 255, 255 ) } },;
                                                { { 1, RGB( 43, 87, 154 ), RGB( 43, 87, 154 ) } } ) }
      aGradHigh     := { { 1, RGB( 255, 255, 255 ), RGB( 255, 255, 255 ) } }
      aGradOver     := { { 1, RGB( 255, 255, 255 ), RGB( 255, 255, 255 ) } }
   endif


With the above colors for aGradFld it should be ok. Also you need to change this line in tribbon.prg line 813:

aGradFld = Eval( ::aGradFld, nPrompt )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42094
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Background Color

Postby arthursilvestre » Thu Sep 12, 2013 7:49 pm

thank you antonio, got it. :)
User avatar
arthursilvestre
 
Posts: 32
Joined: Thu Sep 20, 2012 7:29 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 92 guests