Ribbon tab color MICROSOFT OFFICE 2016

Re: Ribbon tab color MICROSOFT OFFICE 2016

Postby José Luis Sánchez » Tue May 09, 2017 6:06 pm

Hello,
Here is a capture of one of my programs using a customized ribbonbar. It's inside a program called PicPick that shows the, IMHO, correct ribbon aspect.You can find the same approach in the file explorer of Windows 10.

Image

I'm trying to use a backstage control and I'm having a lot of problems with it. First, we have to use a TRbBtn to simulate the colored folder that allws to access the BackStage. I think that its easier using a colored folder to access the BackStage. Second, I don't know how to access the right side of the backstage.

Regards,
User avatar
José Luis Sánchez
 
Posts: 539
Joined: Thu Oct 13, 2005 9:23 am
Location: Novelda - Alicante - España

Re: Ribbon tab color MICROSOFT OFFICE 2016

Postby Silvio.Falconi » Tue May 09, 2017 6:40 pm

José
The back color of office16 is hgray no as 2015!!

For the backstage i not know because i not try it
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: 6716
Joined: Thu Oct 18, 2012 7:17 pm

Re: Ribbon tab color MICROSOFT OFFICE 2016

Postby Antonio Linares » Wed May 10, 2017 11:54 am

José Luis,

Would you mind to share your changes with us ?

many thanks
regards, saludos

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

Re: Ribbon tab color MICROSOFT OFFICE 2016

Postby José Luis Sánchez » Thu May 11, 2017 2:00 pm

Antonio,
of course I'm going to share the customization. These are the changes I've made in my ribbon, I do it using the 2010 style as default:
* when defining the Tribbon use a size that fits the heighs of the folder and let no space in the top of them. I use 22 as nTopMargin in the New() method.
Code: Select all  Expand view
::oRebar := TRibbonBar():New(::oWndMain, aRbPrompts,,,,105,22,CLR_WHITE,RGB(165,186,204),,,,,,,,.T.,)

* in tribbon class I have made several changes, first is reduce ::nLeftMagin and ::hSeparation to 5 so the horizontal gap between folders are minimal.
* In the new() method I use this color definitions in the default clause for 2010 style
Code: Select all  Expand view
nClrBoxSelIn  := RGB( 245, 246, 247 ),;
aGrad         := { { 1, RGB( 245, 246, 247 ), RGB( 245, 246, 247 ) } },;
aGradFld      := {| nOpt | if( nOpt == ::nStart, { { 1, RGB( 245, 246, 247 ), RGB( 245, 246, 247 ) } },;
                        { { 1, RGB( 245, 246, 247 ), RGB( 245, 246, 247 ) } } ) } ,;
aGradHigh     := { { 1, RGB( 245, 246, 247 ), RGB( 245, 246, 247 ) } } ,;
aGradOver     := { { 1, RGB( 245, 246, 247 ), RGB( 245, 246, 247 ) } }

* In the original ribbon class there is a 2px gap in the bottom of the control. I painted it with the color background of the main window. Sorry, but I don't know how to reduce the vertical size of the control and adjust it. So, in the paint method after
Code: Select all  Expand view
hBrush2 =  CreateSolidBrush( ::nClrPaneRB )
        FillRect( hDCMem, aRect, hBrush2 )

I added this
Code: Select all  Expand view
hBrush3 =  CreateSolidBrush(GetSysColor(15) - Rgb(20,20,20 ))
        FillRect( hDCMem, {aRect[3]-2,aRect[2],aRect[3],aRect[4]}, hBrush3 )

* In PaintFld() method I changed the Drawtext call, deleting the +2 in the row position:
Code: Select all  Expand view
DrawText( hDCMem, oSelf:aPrompts[ nPrompt ], { nRow, ...

[/list]
Regards,
José Luis
User avatar
José Luis Sánchez
 
Posts: 539
Joined: Thu Oct 13, 2005 9:23 am
Location: Novelda - Alicante - España

Re: Ribbon tab color MICROSOFT OFFICE 2016

Postby Silvio.Falconi » Sun Nov 05, 2017 7:17 pm

these modifies are inseted on New package of fwh ?
Good can be a L2016 parameter to load this style
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: 6716
Joined: Thu Oct 18, 2012 7:17 pm

Re: Ribbon tab color MICROSOFT OFFICE 2016

Postby CARLOS ATUNCAR » Sun Dec 24, 2017 4:58 pm

una consulta en versiones anteriores podia usar diferentes tipos de imagenes (Ico,Bmp) desde recursos y se ajustaba el icons segun el formato 32x32 teniendo varios formatos (16x16,32x32,48x48, etc) ahora no usa el primero que tiene, Consulta como puedo hacer para seleccionar el formato deseado. Gracias por sus respuesta
CARLOS ATUNCAR
 
Posts: 111
Joined: Thu Sep 17, 2015 11:40 pm

Re: Ribbon tab color MICROSOFT OFFICE 2016

Postby nageswaragunupudi » Sat Jan 06, 2018 4:15 pm

CARLOS ATUNCAR wrote:una consulta en versiones anteriores podia usar diferentes tipos de imagenes (Ico,Bmp) desde recursos y se ajustaba el icons segun el formato 32x32 teniendo varios formatos (16x16,32x32,48x48, etc) ahora no usa el primero que tiene, Consulta como puedo hacer para seleccionar el formato deseado. Gracias por sus respuesta


Please make this modification in \fwh\source\function\imgtxtio.prg
You will see #define CNLVER in the top part of the program.
Please comment this line, compile and add to your project.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10207
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Ribbon tab color MICROSOFT OFFICE 2016

Postby cnavarro » Sat Jan 06, 2018 6:23 pm

Please, look


//----------------------------------------------------------------------------//

#define CNLVER //If you comment #define CNLVER in imgtxtio.prg, you has to comment #define CNLVER in icons.c

//----------------------------------------------------------------------------//

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
User avatar
cnavarro
 
Posts: 6498
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Ribbon tab color MICROSOFT OFFICE 2016

Postby Silvio.Falconi » Fri Jan 19, 2018 9:11 pm

Do you inserted the New 2016 style into RibbonBar ?
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: 6716
Joined: Thu Oct 18, 2012 7:17 pm

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 9 guests