missing properties in WPTools 5

  • Hi,

    I upgraded to WPTools 5, but now I have some problems with functions and properties that don't seem to exist anymore. Can someone tell me how I can fix this?

    The missing functions and properties are:

    - TWPCustomRichText.SelectCells(Count: Integer)
    - TWPCustomRtfEdit.InsertTextAtCP
    - TWPRichText.PrintFooter

    Thx

    • Offizieller Beitrag

    - TWPCustomRichText.SelectCells(Count: Integer)

    You can use the SelectCell procedure:

    It selects (only) the given or the current cell. If the parameter 'add' is TRUE the previously selected cells will not be deselected. If the parameter 'add' is true and the cell is already selected it will be deselected!

    for i:= startcol to endcol-1 do
    SelectCell(TableRow.Cols[i], i>startcol);

    - TWPCustomRtfEdit.InsertTextAtCP
    Use InputString - BeginUpdate/EndUpdate is not required to get best performance.

    - TWPRichText.PrintFooter
    You can use the OnPaintWatermark event. Also see watermark demo.

    Kind Regards,

    Julian Ziersch