private String paintSection(cReportAspect aspect,
String sKey,
csRptSectionType rptType,
String text,
bool isSecLn)
{
cReportPaintObject paintObj = null;
paintObj = m_paint.getNewSection(csRptPaintObjType.CSRPTPAINTOBJBOX);
cReportAspect w_aspect = paintObj.getAspect();
// we only draw the bottom line of the sections
//
w_aspect.setLeft(0);
w_aspect.setTop(aspect.getTop() + aspect.getHeight() - cGlobals.C_HEIGHT_BAR_SECTION);
w_aspect.setWidth(aspect.getWidth());
w_aspect.setHeight(cGlobals.C_HEIGHT_BAR_SECTION);
w_aspect.setBorderType(csReportBorderType.CSRPTBSFIXED);
w_aspect.setBorderWidth(1);
if (isSecLn) {
w_aspect.setBackColor(0xffcc99);
w_aspect.setBorderColor(Color.Red.ToArgb());
}
else {
const int innerColor = 0x99ccff;
if (rptType == csRptSectionType.GROUP_FOOTER
|| rptType == csRptSectionType.GROUP_HEADER) {
w_aspect.setBackColor(innerColor);
w_aspect.setBorderColor(0xC0C000);
}
else {
w_aspect.setBackColor(innerColor);
w_aspect.setBorderColor(0x0066cc);
}
}
if (rptType == csRptSectionType.MAIN_FOOTER
|| rptType == csRptSectionType.FOOTER) {
w_aspect.setOffset(m_offSet);
}
paintObj.setIsSection(!isSecLn);
paintObj.setRptType(rptType);
paintObj.setTag(sKey);
paintObj.setText(text);
return paintObj.getKey();
}