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

TabStopPositions in a TppMemo

edited March 2005 in General
Hi,

i have TDBMemos and changed the TabStops to 16 dialog box-units (via
EM_SetTabStops).

How can i calculate the value (in mm) for the TabStopPositions Property for
a TppDBMemo?

Thanks
J?rgen

Comments

  • edited March 2005
    Hi Jurgen,

    The TabStopPositions in the TppCustomMemo object should be defined in report
    units. If your report units are set to mm, you will need to define your tab
    stop positions in mm. See the RB help file on the
    TppCustomMemo.TabStopPositions topic for more information.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2005
    Hi Nico

    i looked into the help file. I know that i must define the TabStopPositions
    in report units.

    My problem is that the TDBMemo needs the value in Dialog-Box-Units. Default
    is 32, i set it to 16.
    The TppDBMemo needs the TabStop value in report units (for me in mm).
    How can i calculate Dialog-Box-Units to mm for the TppDBMemo?

    Cheers,
    J?rgen
  • edited March 2005
    Hi Jurgen,

    I am not familiar with Dialog-Box-Units but if this is Screen Pixels, you
    will need to first find out what your screen resolution is in order to
    calculate how many screen pixels are in a millimeter. There are a few
    useful routines located in the ppUtils.pas file such as ppFromMMThousandths
    and ppToMMThousandths which could help you make these conversions.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.