Align right footer in DCBROWSECOL

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
jdsoft
Posts: 113
Joined: Thu Jan 28, 2010 1:13 pm
Location: Overberg
Contact:

Align right footer in DCBROWSECOL

#1 Post 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
Regards,
Jack Duijf

reganc
Posts: 257
Joined: Thu Jan 28, 2010 3:08 am
Location: Hersham, Surrey, UK
Contact:

Re: Align right footer in DCBROWSECOL

#2 Post 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...
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com

User avatar
jdsoft
Posts: 113
Joined: Thu Jan 28, 2010 1:13 pm
Location: Overberg
Contact:

Re: Align right footer in DCBROWSECOL

#3 Post 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
Regards,
Jack Duijf

Post Reply