FWH 7.10 - Office 2007 look for MsgBar

FWH 7.10 - Office 2007 look for MsgBar

Postby Antonio Linares » Mon Oct 08, 2007 8: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:
Code: Select all  Expand view  RUN
   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
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH 7.10 - Office 2007 look for MsgBar

Postby Enrico Maria Giordano » Wed Oct 10, 2007 7: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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Wed Oct 10, 2007 9:47 am

Enrico,

Its a Vista feature
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Enrico Maria Giordano » Wed Oct 10, 2007 9:53 am

Ok, thank you.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby James Bott » Tue Oct 16, 2007 4: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Antonio Linares » Wed Oct 17, 2007 8:58 am

James,

Please post a screenshot, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby James Bott » Wed Oct 17, 2007 5:02 pm

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

Image
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby nageswaragunupudi » Wed Oct 17, 2007 9: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
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby nageswaragunupudi » Wed Oct 17, 2007 9: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
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby nageswaragunupudi » 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:

Image

Screen shot Non 2007 style

Image

Here is the code

Code: Select all  Expand view  RUN
   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
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby James Bott » Thu Oct 18, 2007 3: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby nageswaragunupudi » Thu Oct 18, 2007 6: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
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby Enrico Maria Giordano » Thu Oct 18, 2007 7: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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 71 guests

cron