Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Setting TabStopPositions by RAP-Code

edited February 2014 in General

Hi,

I can set TabstopPositions in the property-editor, but setting/changing
the TabstopPosition in RAP does not work for me.

Even a Control.TabstopPosition.clear does not work.

Do you have any ideas?

we work with RBuilder 12.05.

Thank you for your help,
Josef
--

Comments

  • edited February 2014
    Josef,

    For Delphi and RAP code, setting TabStopPositions requires using a local
    variable as shown below. The current implementation of the TabStopPositions
    property, returns a copy of the TStrings, so you have to get the copy and
    then assign the copy.


    var
    lTabStops: TStrings;
    begin
    lTabStops := Memo1.TabStopPositions;

    lTabStops.Clear;
    lTabStops.Add('2'); // use report units here

    Memo1.TabStopPositions := lTabStops;

    end;




    Best regards,

    -

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.