DEFINE BUTTONBAR oBar OF oWnd SIZE 60, 60 2007
...
SET MESSAGE OF oWnd TO "Testing the ButtonBar 2007 Office look" ;
CENTERED 2007 CLOCK KEYBOARD
DEFINE BUTTONBAR oBar OF oWnd SIZE 60, 60 2007
...
SET MESSAGE OF oWnd TO "Testing the ButtonBar 2007 Office look" ;
CENTERED 2007 CLOCK KEYBOARD
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
Enrico,
Its a Vista feature
Ok, thank you.
EMG
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
James,
Please post a screenshot, thanks
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?
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.


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
ENDIFNageswaraRao,
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
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.
nageswaragunupudi wrote:Personally I prefer that look.