Page 1 of 1
FWH 7.10 - Office 2007 look for MsgBar
Posted: Mon Oct 08, 2007 8:14 am
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
Re: FWH 7.10 - Office 2007 look for MsgBar
Posted: Wed Oct 10, 2007 7:35 am
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
Posted: Wed Oct 10, 2007 9:47 am
by Antonio Linares
Enrico,
Its a Vista feature
Posted: Wed Oct 10, 2007 9:53 am
by Enrico Maria Giordano
Ok, thank you.
EMG
Posted: Tue Oct 16, 2007 4:05 am
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
Posted: Wed Oct 17, 2007 8:58 am
by Antonio Linares
James,
Please post a screenshot, thanks
Posted: Wed Oct 17, 2007 5:02 pm
by James Bott
Here is a screenshot showing the gray inset. This under XP Pro.
Posted: Wed Oct 17, 2007 9:43 pm
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?
Posted: Wed Oct 17, 2007 9:52 pm
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.
Posted: Wed Oct 17, 2007 10:34 pm
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:
Screen shot Non 2007 style
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.
Posted: Thu Oct 18, 2007 3:32 am
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
Posted: Thu Oct 18, 2007 6:51 am
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.
Posted: Thu Oct 18, 2007 7:23 am
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