FWH 7.10 - Office 2007 look for MsgBar

Post Reply
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

FWH 7.10 - Office 2007 look for MsgBar

Post by Antonio Linares »

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:

Code: Select all

   DEFINE BUTTONBAR oBar OF oWnd SIZE 60, 60 2007
...
   SET MESSAGE OF oWnd TO "Testing the ButtonBar 2007 Office look" ;
      CENTERED 2007 CLOCK KEYBOARD
Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: FWH 7.10 - Office 2007 look for MsgBar

Post by Enrico Maria Giordano »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Enrico,

Its a Vista feature
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

James,

Please post a screenshot, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Here is a screenshot showing the gray inset. This under XP Pro.

Image
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

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
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

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
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

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:

Image

Screen shot Non 2007 style

Image

Here is the code

Code: Select all

   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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

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
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

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
Post Reply