xBrowse Header : Themes

User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

xBrowse Header : Themes

Post by TimStone »

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
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Post by StefanHaupt »

Tim,

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

Code: Select all

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

Code: Select all

Gradient (hDC, {nRow, nCol, nRow+nHeight, nCol+nWidth}, aColors[2],nRGB(245,245,245), .t.) // SH
and then before drawing the text:

Code: Select all

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
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

xBrowse Header Gradient

Post by TimStone »

Thanks ... that gets me started.
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

this run ok but the BITmap not are trasparent !!!!!!!!!!!

Image
Best Regards, Saludos

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

Post by Antonio Linares »

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

Antonio Linares
www.fivetechsoft.com
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

XBrowse with Gradient Fill

Image

Works on 32-bt and 16-bit colors
Regards

G. N. Rao.
Hyderabad, India
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

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

Post by Antonio Linares »

Silvio,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Maurilio Viana
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil
Contact:

Post by Maurilio Viana »

>> XBrowse with Gradient Fill

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

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

Post by Antonio Linares »

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

Post by nageswaragunupudi »

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
User avatar
Maurilio Viana
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil
Contact:

Post by Maurilio Viana »

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

Post by Antonio Linares »

Maurilio,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

this is another class

Image

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
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

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

Falconi Silvio
Post Reply