xBrowse Header : Themes
xBrowse Header : Themes
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
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
-
- Posts: 824
- Joined: Thu Oct 13, 2005 7:39 am
- Location: Germany
Tim,
to paint the header with a gradient change these lines in the class TXBrwColumn, Method PaintHeader()
to
and then before drawing the text:
The second color is hardcoded at the moment, there would have been to many changes in the class.
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 )
Code: Select all
Gradient (hDC, {nRow, nCol, nRow+nHeight, nCol+nWidth}, aColors[2],nRGB(245,245,245), .t.) // SH
Code: Select all
SetBkMode (hDC, 1) // transparent SH
DrawTextEx( hDC, cHeader,....... )
kind regards
Stefan
Stefan
xBrowse Header Gradient
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
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Maurilio Viana
- Posts: 252
- Joined: Tue Oct 25, 2005 2:48 pm
- Location: Garça/Garza/Heron City - Brazil
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
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
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
G. N. Rao.
Hyderabad, India
- Maurilio Viana
- Posts: 252
- Joined: Tue Oct 25, 2005 2:48 pm
- Location: Garça/Garza/Heron City - Brazil
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: