Page 1 of 3

xBrowse Header : Themes

Posted: Mon Nov 12, 2007 5:16 pm
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 ) ?

Posted: Tue Nov 13, 2007 8:37 am
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.

xBrowse Header Gradient

Posted: Tue Nov 13, 2007 4:46 pm
by TimStone
Thanks ... that gets me started.

Posted: Wed Nov 14, 2007 12:07 am
by Silvio
this run ok but the BITmap not are trasparent !!!!!!!!!!!

Image

Posted: Wed Nov 14, 2007 1:09 am
by Antonio Linares
You have to paint the bitmaps using FWH TransBmp() function

Posted: Wed Nov 14, 2007 5:33 am
by nageswaragunupudi
XBrowse with Gradient Fill

Image

Works on 32-bt and 16-bit colors

Posted: Wed Nov 14, 2007 10:53 am
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

Posted: Wed Nov 14, 2007 11:16 am
by Antonio Linares
Silvio,

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

Posted: Wed Nov 14, 2007 3:30 pm
by Maurilio Viana
>> XBrowse with Gradient Fill

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

Regards,
Maurilio

Posted: Wed Nov 14, 2007 4:08 pm
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

Posted: Wed Nov 14, 2007 4:24 pm
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

Posted: Wed Nov 14, 2007 5:55 pm
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

Posted: Wed Nov 14, 2007 6:44 pm
by Antonio Linares
Maurilio,

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

Posted: Thu Nov 15, 2007 8:41 am
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 !!!

Posted: Thu Nov 15, 2007 9:12 am
by Silvio
Antonio ,
where I can see the parameters of transbmp() function ?