FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse Header : Themes
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
xBrowse Header : Themes
Posted: Mon Nov 12, 2007 05:16 PM

Is it possible to have the xbrowse header respond to the themes as with other controls ( message bar, menus, etc ), or is it possible to paint the header with a gradient ( like tsbrowse ) ?

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
xBrowse Header : Themes
Posted: Tue Nov 13, 2007 08:37 AM
Tim,

to paint the header with a gradient change these lines in the class TXBrwColumn, Method PaintHeader()

//FillRect( hDC, {nRow, nCol, nRow + nHeight, nCol + nWidth}, hBrush )

to
Gradient (hDC, {nRow, nCol, nRow+nHeight, nCol+nWidth}, aColors[2],nRGB(245,245,245), .t.) // SH

and then before drawing the text:

SetBkMode (hDC, 1)     // transparent SH
   DrawTextEx( hDC, cHeader,....... )


The second color is hardcoded at the moment, there would have been to many changes in the class.
kind regards

Stefan
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
xBrowse Header Gradient
Posted: Tue Nov 13, 2007 04:46 PM

Thanks ... that gets me started.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
xBrowse Header : Themes
Posted: Wed Nov 14, 2007 12:07 AM
this run ok but the BITmap not are trasparent !!!!!!!!!!!

Best Regards, Saludos



Falconi Silvio
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
xBrowse Header : Themes
Posted: Wed Nov 14, 2007 01:09 AM

You have to paint the bitmaps using FWH TransBmp() function

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
xBrowse Header : Themes
Posted: Wed Nov 14, 2007 05:33 AM
XBrowse with Gradient Fill



Works on 32-bt and 16-bit colors
Regards



G. N. Rao.

Hyderabad, India
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
xBrowse Header : Themes
Posted: Wed Nov 14, 2007 10:53 AM

Antonio you said
>You have to paint the bitmaps using FWH TransBmp() function
have you an idea or where i must modify it ?

Thanks

Best Regards, Saludos



Falconi Silvio
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
xBrowse Header : Themes
Posted: Wed Nov 14, 2007 11:16 AM

Silvio,

Make a search for TransBmp() in FWH PRGs :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 252
Joined: Tue Oct 25, 2005 02:48 PM
xBrowse Header : Themes
Posted: Wed Nov 14, 2007 03:30 PM

>> XBrowse with Gradient Fill

Great, Nageswaragunupudi!!!
can you share with us how do it?

Regards,
Maurilio

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
xBrowse Header : Themes
Posted: Wed Nov 14, 2007 04:08 PM

Maurilio,

We are going to include it in FWH 7.12 and its better if there is just one version around, so it will be easier for tech support.

Just wait a few days and it will be available, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
xBrowse Header : Themes
Posted: Wed Nov 14, 2007 04:24 PM

I fully agree with Mr. Antonio. The FWH sample shot released is excellent. I am eagerly awaiting 7.12.

I have to say that my code is amateurish and works just as a stop gap arrangement till I get 7.12, It is better for all of us to stick to official release by FWH

Regards



G. N. Rao.

Hyderabad, India
Posts: 252
Joined: Tue Oct 25, 2005 02:48 PM
xBrowse Header : Themes
Posted: Wed Nov 14, 2007 05:55 PM

Antonio, thanks a lot! I'd not seen post about this xBrowse new feature.
Do you plan implement Office look to other classes?

Regards
Maurilio

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
xBrowse Header : Themes
Posted: Wed Nov 14, 2007 06:44 PM

Maurilio,

Yes, we plan to use the Office 2007 look as much as possible

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
xBrowse Header : Themes
Posted: Thu Nov 15, 2007 08:41 AM
this is another class



We made another class to create brush with two color gradient
With this class we can translate all brush of all classes !!!
Best Regards, Saludos



Falconi Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
xBrowse Header : Themes
Posted: Thu Nov 15, 2007 09:12 AM

Antonio ,
where I can see the parameters of transbmp() function ?

Best Regards, Saludos



Falconi Silvio