Roger,
thank you ver much. I'll follow your advice.
Best regards
Janko
Browse headers
Re: Browse headers
I solved the problem with the header so you can put USEVISUALSTYLE back in your code.
Change your presentation parameters to the following:
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
The eXpress train is coming - and it has more cars.
Re: Browse headers
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
- Attachments
-
- Generic.jpg (51.24 KiB) Viewed 11200 times
Nolberto Paulino
Regards
Regards
Re: Browse headers
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
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
The eXpress train is coming - and it has more cars.
Re: Browse headers
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)
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
Nolberto Paulino
Regards
Regards
Re: Browse headers
What version of Xbase++ are you using?
The eXpress train is coming - and it has more cars.
Re: Browse headers
I can confirm, that this solution is working well.
BR J.
BR J.