FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Ribbon tab color MICROSOFT OFFICE 2016
Posts: 564
Joined: Thu Oct 13, 2005 09:23 AM
Re: Ribbon tab color MICROSOFT OFFICE 2016
Posted: Tue May 09, 2017 06: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.



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,
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Ribbon tab color MICROSOFT OFFICE 2016
Posted: Tue May 09, 2017 06: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 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: Ribbon tab color MICROSOFT OFFICE 2016
Posted: 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
Posts: 564
Joined: Thu Oct 13, 2005 09:23 AM
Re: Ribbon tab color MICROSOFT OFFICE 2016
Posted: Thu May 11, 2017 02: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 (fw): Select all Collapse
::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 (fw): Select all Collapse
 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 (fw): Select all Collapse
hBrush2 =  CreateSolidBrush( ::nClrPaneRB )
        FillRect( hDCMem, aRect, hBrush2 )

I added this
Code (fw): Select all Collapse
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 (fw): Select all Collapse
DrawText( hDCMem, oSelf:aPrompts[ nPrompt ], { nRow, ...


Regards,
José Luis
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Ribbon tab color MICROSOFT OFFICE 2016
Posted: Sun Nov 05, 2017 07: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 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: 230
Joined: Thu Sep 17, 2015 11:40 PM
Re: Ribbon tab color MICROSOFT OFFICE 2016
Posted: Sun Dec 24, 2017 04: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 - CaSoftSystem
Chincha - Perú
+51983478218
carlosalbatun@gmail.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Ribbon tab color MICROSOFT OFFICE 2016
Posted: Sat Jan 06, 2018 04: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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Ribbon tab color MICROSOFT OFFICE 2016
Posted: Sat Jan 06, 2018 06: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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Ribbon tab color MICROSOFT OFFICE 2016
Posted: Fri Jan 19, 2018 09: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 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