Re: Browse headers
Posted: Sun Dec 03, 2017 2:32 am
Roger,
thank you ver much. I'll follow your advice.
Best regards
Janko
thank you ver much. I'll follow your advice.
Best regards
Janko
Donnay Software Web Forums
http://bb.donnay-software.com/donnay/
http://bb.donnay-software.com/donnay/viewtopic.php?f=2&t=2290
Code: Select all
aPres := ;
{ { XBP_PP_COL_DA_ROWHEIGHT, 140 }, ; // rows are 48 pixels high
{ XBP_PP_COL_DA_CELLHEIGHT, 140 } ,;
{ XBP_PP_COL_DA_HILITE_BGCLR, GraMakeRGBColor({204,255,191}) },; // Hilite BG color
{ XBP_PP_COL_DA_ROWSEPARATOR, XBPCOL_SEP_LINE }, /* Row Sep */ ;
{ XBP_PP_COL_DA_COLSEPARATOR, XBPCOL_SEP_LINE }, /* Col Sep */ ;
{ XBP_PP_COL_HA_COMPOUNDNAME, '14.Arial Bold' }, ; // Header Font
{ XBP_PP_COL_HA_BGCLR, GRA_CLR_WHITE }, ; // Header BG color
{ XBP_PP_COL_HA_FGCLR, GRA_CLR_DARKRED } } // Header FG color
rdonnay wrote:I solved the problem with the header so you can put USEVISUALSTYLE back in your code.
Change your presentation parameters to the following:Code: Select all
aPres := ; { { XBP_PP_COL_DA_ROWHEIGHT, 140 }, ; // rows are 48 pixels high { XBP_PP_COL_DA_CELLHEIGHT, 140 } ,; { XBP_PP_COL_DA_HILITE_BGCLR, GraMakeRGBColor({204,255,191}) },; // Hilite BG color { XBP_PP_COL_DA_ROWSEPARATOR, XBPCOL_SEP_LINE }, /* Row Sep */ ; { XBP_PP_COL_DA_COLSEPARATOR, XBPCOL_SEP_LINE }, /* Col Sep */ ; { XBP_PP_COL_HA_COMPOUNDNAME, '14.Arial Bold' }, ; // Header Font { XBP_PP_COL_HA_BGCLR, GRA_CLR_WHITE }, ; // Header BG color { XBP_PP_COL_HA_FGCLR, GRA_CLR_DARKRED } } // Header FG color
rdonnay wrote:What version of Xbase++ are you using? You need build 355 or later.
This is from _DCXBROW.PRG:
#if XPPVER > 1900331
CLASS DC_XbpOwnerDrawBrowseGeneric FROM DC_XbpBrowse
PROTECTED:
VAR oIcon, oBitmap, aLineAttrs, aBoxAttrs, oStdFont, oBoldFont, oBoldItalicFont, ;
oFont, oSelectedFont
EXPORTED:
VAR lOwnerDraw, nLineHeight, nCellHeight
VAR stdFontCompoundName, boldFontCompoundName, boldItalicFontCompoundName