Silvio.Falconi wrote:Please try this style
- Code: Select all Expand view
#include "Fivewin.ch"
#include "Ribbon.ch"
#define COLOR_MENUHILIGHT 29 //051,153,255
#define COLOR_MENUBAR 30 //240,240,240
FUNCTION MAIN()
LOCAL oWnd, oRBar, oRGrp, oBtn1
DEFINE WINDOW oWnd
DEFINE RIBBONBAR oRBar WINDOW oWnd PROMPT "One", "Two", "Three" HEIGHT 163 TOPMARGIN 45 2015
oRBar:aClrTabTxt = { { | oSelf, nPrompt | If( nPrompt == oRBar:nOption, GetSysColor( COLOR_MENUHILIGHT ) , CLR_WHITE ) },;
{ | oSelf, nPrompt | If( nPrompt == oRBar:nOption, GetSysColor( COLOR_MENUHILIGHT ) , CLR_WHITE ) },;
{ | oSelf, nPrompt | If( nPrompt == oRBar:nOption, GetSysColor( COLOR_MENUHILIGHT ) , CLR_WHITE ) } }
oRBar:nClrPaneRB = GetSysColor( COLOR_MENUHILIGHT )
oRBar:aGradFld = { || { { 1, CLR_WHITE, CLR_WHITE } } }
oRBar:aGradOver = { || { { 1, GetSysColor( COLOR_MENUHILIGHT ) , GetSysColor( COLOR_MENUHILIGHT ) } } }
ADD GROUP oRGrp RIBBONBAR oRBar;
TO OPTION 1
oRGrp:aGradCaption = { { 1, CLR_WHITE, CLR_WHITE } }
@ 2, 2 ADD BUTTON oBtn1 GROUP oRGrp ;
SIZE oRGrp:nWidth / 2, oRGrp:nHeight - 18 ;
action msginfo()
oBtn1:bClrGradNormal = { | lPressed | If( lPressed,;
{ { 1, RGB( 197, 197, 197 ), RGB( 197, 197, 197 ) } },;
{ { 1, CLR_WHITE, CLR_WHITE } } ) }
ACTIVATE WINDOW oWnd
RETURN NIL
Silvio.Falconi wrote:Also Itried it and also I saw the black line
perhaps can change ( for 2016) the type of Brush from blue to white
something as
hBrush2 = CreateSolidBrush( ::nClrPaneRB )
//*FillRect( hDCMem, aRect, hBrush2 )
GradientFill( hDCMem, aRect[ 1 ] - 2, aRect[ 2 ] - 3, aRect[ 3 ] + 1, aRect[ 4 ] + 5,;
{ { 1, CLR_WHITE, CLR_WHITE } }, .T. )
aRect[ 3 ] -= 3
FillRect( hDCMem, aRect, hBrush2 )
aRect[ 3 ] += 3
oRBar:nClrPaneRB := MIN( ncolor1,ncolor2)
hBrush2 = CreateSolidBrush( ::nClrPaneRB )
FillRect( hDCMem, aRect, hBrush2 )
GradientFill( hDCMem, aRect[ 1 ] - 2, aRect[ 2 ] - 3, aRect[ 3 ] + 1, aRect[ 4 ] + 5,;
{ { 1, ::nClrPaneRB,CLR_WHITE } }, .T. )
aRect[ 3 ] -= 3
FillRect( hDCMem, aRect, hBrush2 )
aRect[ 3 ] += 3
Silvio, and what about the other Ribbon themes? They will not look fine if we force white there
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot], jmartial and 42 guests