FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH 7.10 - Office 2007 look for MsgBar
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
FWH 7.10 - Office 2007 look for MsgBar
Posted: Mon Oct 08, 2007 08:14 AM
We are almost ready for FWH 7.10 :-) We have implemented support for Office 2007 look on the msgbar too. No need to modify your source code, simply add 2007 as a new clause:
   DEFINE BUTTONBAR oBar OF oWnd SIZE 60, 60 2007
...
   SET MESSAGE OF oWnd TO "Testing the ButtonBar 2007 Office look" ;
      CENTERED 2007 CLOCK KEYBOARD

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: FWH 7.10 - Office 2007 look for MsgBar
Posted: Wed Oct 10, 2007 07:35 AM

I noticed that in your image the menu is painted in gradient color. Is it a feature of Vista or can we get it in XP too?

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
FWH 7.10 - Office 2007 look for MsgBar
Posted: Wed Oct 10, 2007 09:47 AM

Enrico,

Its a Vista feature

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
FWH 7.10 - Office 2007 look for MsgBar
Posted: Wed Oct 10, 2007 09:53 AM

Ok, thank you.

EMG

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
FWH 7.10 - Office 2007 look for MsgBar
Posted: Tue Oct 16, 2007 04:05 AM

Antonio,

Your graphic shows the background color of the message bar text insets as white. Mine is showing as gray. White would be better.

I am using the latest libs you sent; today (Oct 15) I think.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
FWH 7.10 - Office 2007 look for MsgBar
Posted: Wed Oct 17, 2007 08:58 AM

James,

Please post a screenshot, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
FWH 7.10 - Office 2007 look for MsgBar
Posted: Wed Oct 17, 2007 05:02 PM
Here is a screenshot showing the gray inset. This under XP Pro.

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
FWH 7.10 - Office 2007 look for MsgBar
Posted: Wed Oct 17, 2007 09:43 PM

The insets were gray even without 2007 style. In fact there is no change in the color with or without 2007 style. Perhaps it looks slightly different on Vista. Is it a pure white even in Mr. Antonio's sample?

Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
FWH 7.10 - Office 2007 look for MsgBar
Posted: Wed Oct 17, 2007 09:52 PM

By default the msgitem's nclrpane is msgbar's nclrpane, which is buttonface color. So depending on the setting of different pc's the msgitem's background can change.

Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
FWH 7.10 - Office 2007 look for MsgBar
Posted: Wed Oct 17, 2007 10:34 PM
I dont know how office 2007 msgbars look. But in office 2003 or in any other software the different msgs on the msg bars are not painted as depressed like in fivewin. Mostly they are painted at different portions of the Status Bar or shown in "Parts" of Status Bar. They look as msgs between two vertical lines.

Personally I prefer that look. Still I prefer to use FW msgbar and msgitems than FW Status Bar and parts because MsgItems have a lot more functionality than the Parts of StatusBar provided by FW.

I am using a minor change to the TMsgItem.Prg, to paint (optionally) MsgItems like parts of statusbar. With this change my software's msgbar appears like any other software purchased and used by the users.

Here is a sample screen shot 2007 style:



Screen shot Non 2007 style



Here is the code

   IF StatBarLook()
      WndBoxIn( hDC, 0, nLeft - 8, ::oMsgBar:nHeight - 1, nLeft - 7 ) // Statusbar Parts look
   ELSE
      WndBoxIn( hDC, 3, nLeft - 2, ::oMsgBar:nHeight-5, nLeft + ::nWidth - 6 ) // Original Depressed Look
   ENDIF


The code I adopted is from some post I had seen long back in this forurm. I dont remember the author.
Regards



G. N. Rao.

Hyderabad, India
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
FWH 7.10 - Office 2007 look for MsgBar
Posted: Thu Oct 18, 2007 03:32 AM

NageswaraRao,

I like the new look you have created, but I see that the background of the text is still gray. If we can make this transparent then it will look really nice.

If all controls were transparent by default then they would always look good on any background.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
FWH 7.10 - Office 2007 look for MsgBar
Posted: Thu Oct 18, 2007 06:51 AM

Mr James

If you like you may adopt the code. As I already acknowledged the code is not mine. It was from a post I found here.

We can specify colors for a msgitem if we want a specific background color while definining the msgitem. If we dont specify colors, by default it is transparent painting on non 2007 style.

Transparent painting in 2007 style should be possible, like the default message on msgbar is painted transparently. For msgitems it is not now possible unless the library provides a way.

Regards



G. N. Rao.

Hyderabad, India
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
FWH 7.10 - Office 2007 look for MsgBar
Posted: Thu Oct 18, 2007 07:23 AM
nageswaragunupudi wrote:Personally I prefer that look.


I agree. It would be great if the inset status of the msgitems were optional and following by default the inset status of the msgbar.

EMG

Continue the discussion