Page 1 of 1

Align right footer in DCBROWSECOL

Posted: Tue Apr 20, 2010 12:10 pm
by jdsoft
Hello,

I am unable to align right the footer in DCBROWSECOL.
The footer has the correct color (green)
I must be missing something..

Please advise,
Regards,
Jack Duijf


LOCAL aFootPres := {}

Aadd(aFootPres,{XBP_PP_ALIGNMENT ,XBPALIGN_RIGHT})
Aadd(aFootPres,{XBP_PP_BGCLR ,GRA_CLR_GREEN})

DCBROWSECOL ELEMENT JP_DEBET HEADER "Debet" PARENT oBrowse WIDTH 8 FOOTER {||TransForm(oTotaal:Debet ,"99,999,999.99")} FOOTPRES aFootPres

Re: Align right footer in DCBROWSECOL

Posted: Wed Apr 21, 2010 2:28 am
by reganc
Hi Jack
jdsoft wrote:Hello,

I am unable to align right the footer in DCBROWSECOL.
The footer has the correct color (green)
I must be missing something..

Please advise,
Regards,
Jack Duijf


LOCAL aFootPres := {}

Aadd(aFootPres,{XBP_PP_ALIGNMENT ,XBPALIGN_RIGHT})
Aadd(aFootPres,{XBP_PP_BGCLR ,GRA_CLR_GREEN})

DCBROWSECOL ELEMENT JP_DEBET HEADER "Debet" PARENT oBrowse WIDTH 8 FOOTER {||TransForm(oTotaal:Debet ,"99,999,999.99")} FOOTPRES aFootPres
Use the pres parameter XBP_PP_COL_FA_ALIGNMENT instead for the footer area alignment...

Re: Align right footer in DCBROWSECOL

Posted: Wed Apr 21, 2010 10:11 am
by jdsoft
Hello,

Unfortunaly XBP_PP_COL_FA_ALIGNMENT does not work.

After analyzing the objects in the debugger, i found that xbpCellGroup is responsible for the allignment.
As per Xbase++ docs:
XBP_PP_CGRP_CELLALIGNMENT Alignment of a cell within frame

As result,
Aadd(aFootPres,{XBP_PP_CGRP_CELLALIGNMENT ,XBPALIGN_RIGHT})
DCBROWSECOL ELEMENT JP_DEBET HEADER "Debet" PARENT oBrowse WIDTH 8 FOOTER {||TransForm(oTotaal:Debet ,"99,999,999.99")} FOOTPRES aFootPres

Does align the footer to the right.
Regards,
Jack Duijf