Cell borders Bottom and Right

  • Hi Julian,

    I am having difficulties figuring out how to force a bottom border when the cell is not in the bottom row and how to force a right border when the cell is not in the last column.

    The bottom border only appears if the top border of the cell below is disabled and likewise for the right border. I have tried WPBrd_Draw_Finish but this appears to have no effect.

    I appreciate that you don't normally need a bottom border where the cell below has a top border and likewise for the right border However, if you wish to have a cell with a line type of eg Double, you do need to force the bottom and right borders.

    How do I do this?

    Thanks,

    Mark

    • Offizieller Beitrag

    Hi,

    >>I appreciate that you don't normally need a bottom border where the cell below has a top border and likewise for the right border However, if you wish to have a cell with a line type of eg Double, you do need to force the bottom and right borders. <<

    There is some logic in place in WPRtPAint to hide redundant borders.

    procedure ColLine(x, y, x1, y1: Integer; acolor: TColor);

    there you will find code like

    exclude(LineType, blRight)

    This all is used to remove those lines.

    Julian