Page 2 of 2

Re: Browse headers

Posted: Sun Dec 03, 2017 2:32 am
by Janko
Roger,
thank you ver much. I'll follow your advice.

Best regards
Janko

Re: Browse headers

Posted: Sun Dec 03, 2017 9:05 am
by rdonnay
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

Re: Browse headers

Posted: Thu Jan 11, 2018 1:30 pm
by digitsoft
Hello Roger this subcode DC_XbpOwnerDrawBrowseGeneric is not in the calendar and generic example.



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

Re: Browse headers

Posted: Fri Jan 12, 2018 9:17 am
by rdonnay
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

Re: Browse headers

Posted: Tue Jan 16, 2018 5:12 am
by digitsoft
This is Version 2.0 build 265. This release only supports
Xbase++ 2.0 (build 554 or later) and Xbase++ 1.9 (build 331/355)


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

Re: Browse headers

Posted: Tue Jan 16, 2018 12:48 pm
by rdonnay
What version of Xbase++ are you using?

Re: Browse headers

Posted: Sun Feb 04, 2018 12:59 am
by Janko
I can confirm, that this solution is working well.

BR J.