FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Ribbon Office 2010
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Ribbon Office 2010
Posted: Sat Dec 12, 2009 03:43 AM
Ribbon Office 2010

I noticed some differences.
If you move over a selected tab Office 10 does not change the color or outlook. Fivewin does.
Not changing the color gives a more stable impression.




Code (fw): Select all Collapse
TRibbonBar

METHOD MouseHover( nRow, nCol ) CLASS TRibbonBar

   local nPrompt := ::nOverPrompt( nRow, nCol )

   if ::nLastOver != 0 .and. ::nLastOver != ::nOption .and. ::nLastOver != nPrompt
      ::PaintOver( ::nLastOver, 4 )
   endif

   if nPrompt == 0
      ::PaintOver( ::nOption,1 )
      ::nLastOver := 0
//   elseif nPrompt == ::nOption
//     ::PaintOver( ::nOption, 2 )
 //    ::nLastOver := ::nOption

   else
      ::PaintOver( nPrompt, 3 )
      ::nLastOver := nPrompt
   endif


return nil


It seems to me that
Office 2010 uses a smaller value than 6 to round.
::hRgn := CreateRoundRectRgn( aRect, 6, 6 )



Best regards,
Otto
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Ribbon Office 2010
Posted: Sat Dec 12, 2009 05:40 PM

Otto,

>If you move over a selected tab Office 10 does not change the color or outlook. Fivewin does.

I am guessing that this is a bug in Office 10. Why have one tab a different color? It makes sense that they intended to have the current tab a different color, not just the first tab. Time will tell.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: Ribbon Office 2010
Posted: Sat Dec 12, 2009 09:12 PM

Hello James,

the orange colored button is not a TAB.
It is the new backstage button TM (trademark) of the Office 2010 line. Word has for example a blue one orange is Outlook.

Best regards,
Otto

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Ribbon Office 2010
Posted: Sat Dec 12, 2009 11:40 PM

Otto,

>the orange colored button is not a TAB.

Well, I stand corrected.

That is even more confusing. A tab that isn't a tab. Hmm...

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: Ribbon Office 2010
Posted: Sun Dec 13, 2009 07:33 AM
Hmm...


James,
It is the old „File“ button now called „backstage“ and a trademark.
That is Microsoft!

Best regards,
otto
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: Ribbon Office 2010
Posted: Mon Dec 14, 2009 08:36 AM

Otto,

I suggest to make a new class (maybe TRibbon2010) that inherits from TRibbon to support this new look. So everyone can decide, what design he wants

kind regards

Stefan
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: Ribbon Office 2010
Posted: Mon Dec 14, 2009 09:42 AM

Hello Stefan,

thank you for your suggestion. This is a good idea.
I thought of a classdata lOffice2010:=.t. . But a own class would be more transparent.
But this task is a task Antonio must do.

Best regards,
Otto

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: Ribbon Office 2010
Posted: Thu Dec 17, 2009 04:13 PM

Otto,
Wich is the modifies to make if the loffice2010 is .t. ?

Best Regards, Saludos



Falconi Silvio

Continue the discussion