Browse headers

This forum is for eXpress++ general support.
Message
Author
Janko
Posts: 111
Joined: Sat Mar 20, 2010 8:36 am
Location: Cerklje

Re: Browse headers

#11 Post by Janko »

Roger,
thank you ver much. I'll follow your advice.

Best regards
Janko

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Browse headers

#12 Post 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
The eXpress train is coming - and it has more cars.

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: Browse headers

#13 Post 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
Attachments
Generic.jpg
Generic.jpg (51.24 KiB) Viewed 9755 times
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Browse headers

#14 Post 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
The eXpress train is coming - and it has more cars.

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: Browse headers

#15 Post 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
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Browse headers

#16 Post by rdonnay »

What version of Xbase++ are you using?
The eXpress train is coming - and it has more cars.

Janko
Posts: 111
Joined: Sat Mar 20, 2010 8:36 am
Location: Cerklje

Re: Browse headers

#17 Post by Janko »

I can confirm, that this solution is working well.

BR J.

Post Reply